更新AndroidStudio后,我将gradle更新为包装器中的1.9
,并更新为build.gradle依赖项中的0.7.+
。
从那时起,我在运行时遇到此错误./gradlew check connectedCheck
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors with abortOnError=true; aborting build.
修改
gradle控制台还会显示以下消息:
Ran lint on variant release: 69 issues found
Ran lint on variant debug: 69 issues found
Wrote XML report to <PROJECT>/app/build/lint-results.xml
Wrote HTML report to <PROJECT>/app/build/lint-results.html
:app:lint FAILED
答案 0 :(得分:11)
你应该看看lint错误是什么并修复它们(其中一些非常重要,所以你应该看看它们);如果在错误窗格中找不到任何内容, Gradle Console 应该有更详细的错误消息。如果你想在没有lint错误的情况下让它不中止你的构建,那么错误信息会告诉你应该做什么:把它添加到你的build.gradle
文件中:
android {
lintOptions {
abortOnError false
}
}