我是靠谱客的博主 高高荷花,这篇文章主要介绍Android项目打包异常:Lint found fatal errors while assembling a release target.,现在分享给大家,希望可以做个参考。
下午打包APK的时候报了下面异常:
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
}
}
奇怪的是运行apk正常,但是打包的时候就会报如上的异常信息。根据经验判断是某个资源文件导致的,但是由于没有详细的提示,所以很难找到问题所在。此时我们只需要点击AndroidStudio右侧的Gradle按钮,选择我们项目的app module,然后展开Tasks,点击assemble按钮,具体按钮如图所示:

接着只需要等待完成能看到具体的错误提示,我这边是资源文件里面引入了一个不用的命名空间,删掉就可以正常打包apk了:

最后
以上就是高高荷花最近收集整理的关于Android项目打包异常:Lint found fatal errors while assembling a release target.的全部内容,更多相关Android项目打包异常:Lint内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复