如圖所展示的問題是由於我們的代碼規範問題,導致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
}
}
這樣問題便可以順利解決,但還是希望大家對代碼的規範性要有一定的重視。良好的代碼習慣可以提高自己的工作效率的,哈哈。