Lint found fatal errors while assembling a release target. To proceed, either fix the issues identi

Android bug 记录:

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
    }
}
...

如下图:

解决方法,去到 app 下面的 build .gradle 里面,加入下面的代码:

    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }

如下图所示:

发布了322 篇原创文章 · 获赞 450 · 访问量 32万+

猜你喜欢

转载自blog.csdn.net/wuqingsen1/article/details/102388172
今日推荐