Lint found fatal errors while assembling a release target.

调试的时候,都没有问题,但是在打包的时候,报出下面的错误
1
2
3
4
5
6
7
8
9
10
11
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
}
}

解决方法:
这个错误报告会生成在
[app module]/build/reports/lint-results-yourBuildName-fatal.html
打开这个网页,可以看到详细的错误信息,修改起来就简单了。