Android打包报错:Lint found fatal err

2020-12-04  本文已影响0人  Journey_lm

错误详情

在打release包的时候,出现编译错误!
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/reports/lint-results-release-fatal.html 文件,这个文件就详细描述了release时lint检测到的比较严重的结果
image.png
浏览器会具体显示你代码中的错误位置
image.png
找到后修复即可继续打包
上一篇下一篇

猜你喜欢

热点阅读