我正在使用Android Studio 2.0,并且在尝试运行我的程序时发生了一些奇怪的事情。我运行了gradle的build命令,并且出现了这个错误:Gradle build:执行失败的任务':app:lint'
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}
...
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4.197 secs
Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}
...
10:41:28: External task execution finished 'build'.
所以...这到底是什么?我应该这样做来解决这个问题,将代码添加到gradle.build,但问题是:为什么我得到这个错误信息?
请救我吧!
你在发布吗? –
我很抱歉,但我不知道“build in release”中的含义是什么......你能更具体吗? – Davide
您是使用构建类型“Debug”还是“Release”? –