问题:
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没有定义。
补上就好
————————————————
版权声明:本文为优快云博主「时间_已被注册」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.youkuaiyun.com/shijianduan1/article/details/84965508