版权声明:1、本BLOG的目的、形式及内容。 此BLOG为个人维护BLOG,内容均来自 原创及互连网转载。最终目的为收集整理自己需要的文章技术等内容,不涉及商业用途。\r\n 2、有关原创文章的版权 本BLOG上原创文章未经本人许可,不得用于商业用途及传统媒体。网络媒体转载请注明出处,否则属于侵权行为。\r\n 3、有关本站侵权 本BLOG所转载的内容,均是本人未发现有对文章版权声明的文章且 https://blog.csdn.net/shijianduan1/article/details/84965508
转载请声明,本文来自: https://blog.csdn.net/shijianduan1/article/details/84965508
问题:
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
}
}
分析:
在Android Studio 的Terminal中 执行下面命令,查看具体原因
gradlew lint
命令结果会生成 reports/lint-results-commonRelease-fatal.xml 文件, 查看具体的问题
根据文件我定位到了代码,下面是我遇到的问题:
Thedimen “layout_height_0” in values-sw360dp has no declaration in th base values folder, this can lead to crashes when the resource is queried in a configuration that does not match this qualifier…
解决:
很明显, values-sw360dp/dimens.xml 下面定义了一个变量,但是在 values/dimens.xml没有定义。
补上就好