Android Studio Gradle Configuration Errors总结
来源:互联网 发布:网络新媒体有哪些 编辑:程序博客网 时间:2024/05/20 20:48
http://xuanzhui.iteye.com/blog/2245204
Android Studio Gradle Configuration Errors总结
- 博客分类:
- Android
gradle
1.
- Error:Configuration with name 'default' not found.
这样的错误乍看无从下手,但是gradle提供了一个命令可以进一步地定位具体的错误
- gradlew.bat assembleDebug --info
此时将获取到进一步的错误信息,比如我的
- FAILURE: Build failed with an exception.
- * What went wrong:
- A problem occurred configuring project ':app'.
- > Cannot evaluate module PullToRefresh : Configuration with name 'default' not found.
- * Try:
- Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
- BUILD FAILED
此时可以发现 Cannot evaluate module PullToRefresh 有可能是出错的根源,接来下的验证就比较简单了,查看工程目录下有没有把这个module添加进去之类的。
2.
- Error:(?, 0) Gradle DSL method not found: 'compile()'
查看你的application(整个工程)的build.gradle,里面 dependencies 不要包含
- classpath 'com.android.tools.build:gradle:1.3.0'
之外的依赖
3.
Android Studio混淆编译时,Generate Signed APK遇到
- Execution failed for task ':app:packageRelease'
- Unable to compute hash of XXX\classes.jar
返回到cmd里面执行
- gradle packageRelease --stacktrace
获取到核心err信息
- java.io.IOException: The same input jar XXX is specified twice
解决方法
把proguard-rules.pro中自己定义的 -libraryjars 都注释掉
0 0
- Android Studio Gradle Configuration Errors总结
- Android Studio Gradle Configuration Errors总结
- Android Studio gradle总结
- Android Studio Gradle总结
- Android Studio 打开提示Invalid Gradle JDK configuration found错误
- 导入Android Studio 项目报 invalid gradle jdk configuration found
- Android studio Gradle Error:Configuration with name 'default' not found.
- Android studio Errors
- android studio errors
- Android Studio Gradle的一些总结
- android studio/gradle项目管理总结
- Android Studio中的Gradle的总结
- Android Studio advanced configuration
- Android Studio advanced configuration
- Android Studio advanced configuration
- Android Studio advanced configuration
- Android Studio advanced configuration
- android studio svn 更改依赖包名后 报错 Gradle Configuration with name 'default' not found
- UDP数据包大小分析
- 删除链表奇数元素
- VC 取得系统是什么语种的方法
- 使用内存映射文件来提高你程序的性能
- java 常用英语单词
- Android Studio Gradle Configuration Errors总结
- C语言中怎样判断汉字
- 华为机试题【3】
- Android学习第一篇——Activity的启动模式
- linux通配符和正则表达式
- lucene学习记录(2) - 实时索引,中文分词
- Python 语言及其应用 Chapter_5_Note_2 包
- 黑马程序员——集合
- TextOut显示多行文本的方法