在终端的报错信息:
> 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
刚开始还真不好定位具体是哪里出问题了,多clean或者是打包几次问题就浮现出来了,找到对应的文件把相关的图片拎出来,在ps里面重新导出一次png格式,我当时偷了个懒,直接将后缀名为jpg格式的图片直接改为后缀名为png格式