欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

either fix the issues identified by lint, or modify your build script as follows

发布时间:2023/12/10 编程问答 55 豆豆
生活随笔 收集整理的这篇文章主要介绍了 either fix the issues identified by lint, or modify your build script as follows 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

Android studio 在打包时报错如下:

Lint found fatal errors while assembling a release target.

To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}

解决方法:

。Android Studio里,每个model下都有一个build.gradle。我们需要把如下代码添加到各个model下的build.gradle

 

android {
    compileSdkVersion 24
    buildToolsVersion '26.0.2'

 

    lintOptions {
        abortOnError false
    }

创作挑战赛新人创作奖励来咯,坚持创作打卡瓜分现金大奖

总结

以上是生活随笔为你收集整理的either fix the issues identified by lint, or modify your build script as follows的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。