开发过程中,总会遇到很多坑: 
Gradle build finished with 101 error(s) in 1m 35s 424ms 
19:23:50 Generate Signed APK: Errors while building APK. You can find the errors in 
the ‘Messages’ view. 
这相信大家都会遇到吧,当你想打包APK时就会出现这样的一句话,而且没任何提示了,你心里顿时一万只草泥马奔腾而过…. 
别慌,本大神教你: 
You can find the errors in the ‘Messages’ view.这句话是说查看错误提示你需要打开Messages视图,所以当你打包不成功,冒出这句话时,你想都不要想,在build.gradle文件里加上这样的一句话: 
lintOptions { 
checkReleaseBuilds false 
abortOnError false 

然后你重新打包编译,就会出现错误提示了:打包不成功有很多原因,比如如果出现这样的错误提示: 
* What went wrong: 
Execution failed for task ‘:app:transformClassesWithJarMergingForRelease’.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-09-22
  • 2021-09-03
  • 2021-06-26
  • 2021-11-13
  • 2021-06-21
猜你喜欢
  • 2021-06-29
  • 2021-06-03
  • 2022-12-23
  • 2021-11-24
  • 2021-10-22
  • 2021-06-02
  • 2021-06-04
相关资源
相似解决方案