【发布时间】:2023-03-15 06:55:02
【问题描述】:
我正在使用 Android Studio 2.0,当发生奇怪的事情时,我正在尝试运行我的程序。我运行了 gradle 的构建命令,我得到了这个错误:
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 来解决这个问题,但问题是:为什么我收到此错误消息?
请救救我!
【问题讨论】:
-
你在发布吗?
-
对不起,我不知道你所说的“内置发布”是什么意思...你能说得更具体点吗?
-
您使用的是“Debug”还是“Release”构建类型?
-
我正在调试模式下构建
标签: android android-studio gradle android-gradle-plugin android-studio-2.0