Android在debug模式下应用没有问题,但是在打包release版本时出现一下问题:

提示中,关闭lint checkReleaseBuilds 的检查,可以这样实现:

虽然这样可以解决问题,但是没有解决根本问题。也就是说隐患依旧会存在
lint 是代码检查,可以优化代码,发现一些潜在的bug,所以尽量不要关闭
这个错误报告会生成在
[app module]/build/reports/lint-results-yourBuildName-fatal.html
打开这个网页,一定要用浏览器打开。

这样错误就很明显了,改掉即可。
网友评论