在終端的報錯信息:
> Task :app:mergeReleaseResources
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: libpng error: Not a PNG file
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: libpng error: Not a PNG file
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
WX20190807-165701@2x.png
剛開始還真不好定位具體是哪里出問題了,多clean或者是打包幾次問題就浮現(xiàn)出來了掸刊,找到對應的文件把相關(guān)的圖片拎出來,在ps里面重新導出一次png格式术奖,我當時偷了個懶蝠引,直接將后綴名為jpg格式的圖片直接改為后綴名為png格式
WX20190807-171010@2x.png