如图所展示的问题是由于我们的代码规范问题,导致lint检测没有通过。根据Fix the issues identified by lint,or add the following to your build script to proceed with errors;
的错误提示,我们可以通过去修改我们的代码或者在当前app的app/build.gradle文件内增加如下代码:
android {
lintOptions {
abortOnError false
}
}
这样问题便可以顺利解决,但还是希望大家对代码的规范性要有一定的重视。良好的代码习惯可以提高自己的工作效率的,哈哈。