[android]Gradle build ︰ 执行失败的任务 ':app:lint'

发布时间: 2016/9/26 2:51:52
注意事项: 本文中文内容可能为机器翻译,如要查看英文原文请点击上面连接.

我使用的 Android studio 2.0 和我试图运行我的程序,奇怪的事情发生的时候。我跑了 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 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,但问题是︰我收到此错误消息的原因吗?

请救救我的人 !

解决方法 1:

在你的 build.gradle 中添加这

android {
    lintOptions {
        abortOnError false
    }
}
官方微信
官方QQ群
31647020