在app的build.gradle里的android{}中添加: lintOptions { checkReleaseBuilds false abortOnError false } 参考:添加华为hms三方包时打包报错Errors while building APK. You can find the errors in the 'Messages' view. - WidgetBox - 博客园 (cnblogs.com)