美文网首页
Android打包报错:Lint found fatal err

Android打包报错:Lint found fatal err

作者: Journey_lm | 来源:发表于2020-12-04 15:23 被阅读0次

错误详情

在打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
找到后修复即可继续打包

相关文章

网友评论

      本文标题:Android打包报错:Lint found fatal err

      本文链接:https://www.haomeiwen.com/subject/mfkiwktx.html