react native打包是报错:com.android.bu

2019-08-07  本文已影响0人  Volon

在终端的报错信息:

> 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或者是打包几次问题就浮现出来了,找到对应的文件把相关的图片拎出来,在ps里面重新导出一次png格式,我当时偷了个懒,直接将后缀名为jpg格式的图片直接改为后缀名为png格式

WX20190807-171010@2x.png
上一篇下一篇

猜你喜欢

热点阅读