今天打包APK的时候报了一个错误的异常信息 如下
Error:Execution failed for task ´:app:lintVitalRelease´.
> 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
}
}
经排查,解决方法在打包项目的build.gradle中android内容中加入
//添加如下配置就ok了
lintOptions {
checkReleaseBuilds false
abortOnError false
}
即可
本文介绍了在打包APK过程中遇到的Lint致命错误,并提供了解决方案:通过修改build.gradle文件中的lintOptions设置来禁用检查或允许构建继续进行。
1万+

被折叠的 条评论
为什么被折叠?



