app打包报错To proceed, either fix the issues identified by lint, or modify your build script as follows: ...

 

 

通常是在根目录的build.gradle文件添加这行代码,发现编译通过了。其实上述方案只是忽略该问题,会给app带来意想不到的隐患。
可以查看下app/build/reports/lint-results-release-fatal.xml文件

比如我的是:

 

 很清晰的指出了错误的地方在哪,更改完成后重新打包即可

参考https://blog.csdn.net/cxm2015/article/details/104019005

posted @ 2022-02-16 16:40  only_books  阅读(1059)  评论(0编辑  收藏  举报