[英]Unable to build slidingmenu with gradle, failing on lint
I am getting the following error when I try to build sliding menu project. 当我尝试构建滑动菜单项目时,我收到以下错误。 This project was used in eclipse but I used default import in android studio to get this project. 这个项目在eclipse中使用,但我在android studio中使用默认导入来获得这个项目。
:slidingMenu:lint FAILED :slidingMenu:lint FAILED
FAILURE: Build failed with an exception. FAILURE:构建因异常而失败。
What went wrong: Execution failed for task ':slidingMenu:lint'. 出了什么问题:任务执行失败':slidingMenu:lint'。
[Ljava/util/HashMap$Entry; [Ljava / UTIL / HashMap的$条目;
Try: Run with --stacktrace option to get the stack trace. 尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. 使用--info或--debug选项运行以获取更多日志输出。
BUILD FAILED 建筑失败
Total time: 9.59 secs Could not execute build using Gradle distribution ' http://services.gradle.org/distributions/gradle-1.9-all.zip '. 总时间:9.59秒无法使用Gradle分发' http://services.gradle.org/distributions/gradle-1.9-all.zip '执行构建。
Running with --stacktrace didn't give any new info. 使用--stacktrace运行没有提供任何新信息。
I've tried adding an ignore as mentioned in this answer - gradle build fails on lint task but that doesn't help. 我已尝试添加一个忽略,如此答案中所述 - gradle构建在lint任务上失败,但这没有帮助。
Did the import create a build.gradle in slidingmenu? 导入是否在slidingmenu中创建了build.gradle? That might be the problem if it is not defined as a library: 如果未将其定义为库,则可能是问题:
apply plugin: 'android-library'
I don't have it set up as a library in this way though. 我没有以这种方式将它设置为库。 I include it in the app's build.gradle: 我将它包含在app的build.gradle中:
dependencies {
// ...
compile project(':slidingmenu:library')
}
and in settings.gradle: 并在settings.gradle中:
include ':slidingmenu:library'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.