app打包成正式包的时候报如下错误:
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
}
}
...
从以上log中看不到具体报错信息,查找原因 进入app->build->reports文件下,打开 lint-results-release-fatal.xml查看
原来是我之前删除的三方库,一些布局文件里id没有删除。clean一下,然后rebuild,再次打包,ok没有问题。