Android打包错误ERROR:EXECUTION FAILED FOR TASK ´:APP:LINTVITALRELEASE

今天打包APK的时候报了一个错误的异常信息 如下

Error:Execution failed for task ´:app:lintVitalRelease´.  
> Lint found fatal errors while assembling a release target.  
  To proceed, either fix the issues identified by lint, or modify your build script as follows:  
  ...  
  android {  
      lintOptions {  
          checkReleaseBuilds false  
          // Or, if you prefer, you can continue to check for errors in release builds,  
          // but continue the build even when errors are found:  
          abortOnError false  
      }  
  } 

经排查,解决方法在打包项目的build.gradle中android内容中加入
//添加如下配置就ok了
lintOptions {
checkReleaseBuilds false
abortOnError false
}
即可

猜你喜欢

转载自blog.csdn.net/CrackgmKey/article/details/79542646
今日推荐