android–Gradle build:任务执行失败’:app:lint’

android–Gradle build:任务执行失败’:app:lint’,第1张

概述我正在使用AndroidStudio2.0,当发生奇怪的事情时,我正试图运行我的程序.我运行了gradle的build命令,我收到了这个错误:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:lint'.>Lintfounderrorsintheproject;abortingbu

我正在使用Android Studio 2.0,当发生奇怪的事情时,我正试图运行我的程序.我运行了gradle的build命令,我收到了这个错误:

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 FailedTotal time: 4.197 secslint 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.gradle中添加它

androID {    lintoptions {        abortOnError false    }}
总结

以上是内存溢出为你收集整理的android – Gradle build:任务执行失败’:app:lint’全部内容,希望文章能够帮你解决android – Gradle build:任务执行失败’:app:lint’所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1098554.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存