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
}
}
解决方法:
lintOptions {
checkReleaseBuilds false
abortOnError false
}
本文介绍了解决Lint在构建发布目标时发现致命错误的方法。通过修改构建脚本,可以禁用对发布构建的检查或继续构建即使存在错误。这涉及到调整lintOptions配置,设置checkReleaseBuilds为false并关闭abortOnError。
7705

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



