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’.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM