Android Generate Signed APK: Errors while building APK. You can find the errors )
开发过程中,总会遇到很多坑:
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’.