添加华为hms三方包时打包报错Errors while building APK. You can find the errors in the 'Messages' view.

在项目中接入华为hms时候能跑起来,但是打包会报错

Errors while building APK. You can find the errors in the 'Messages' view.

其实就一句话的问题弄了老半天

上干货

在app的build.gradle里的android{}中添加:

lintOptions {
 checkReleaseBuilds false 
 abortOnError false 
} 

  试试打包就可以一般这两句就行如果不行 我们项目加了这么一行

 // 防止在发布的时候出现因MissingTranslation导致Build Failed!
        disable 'MissingTranslation'

  

磊磊tua

原文地址:https://www.cnblogs.com/widgetbox/p/13588312.html