找到app文件下的build.gradle文件,在该文件中的android加入以下代码: android { … lintOptions { checkReleaseBuilds false abortOnError false } }