android AAPT:libpng错误:不是PNG文件

时间:2015-12-30 06:23:48

标签: android

Information:Gradle tasks [clean, :RongPush:generateDebugSources, :RongPush:generateDebugAndroidTestSources]
:clean UP-TO-DATE
:RongPush:clean
:RongPush:preBuild UP-TO-DATE
:RongPush:preDebugBuild UP-TO-DATE
:RongPush:checkDebugManifest
:RongPush:prepareDebugDependencies
:RongPush:compileDebugAidl
:RongPush:compileDebugRenderscript
:RongPush:generateDebugBuildConfig
:RongPush:generateDebugAssets UP-TO-DATE
:RongPush:mergeDebugAssets
:RongPush:generateDebugResValues UP-TO-DATE
:RongPush:generateDebugResources
:RongPush:mergeDebugResources
AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
AAPT: libpng error: Not a PNG file
:RongPush:mergeDebugResources FAILED
Error:Execution failed for task ':RongPush:mergeDebugResources'.
> Some file crunching failed, see logs for details
Information:BUILD FAILED
Information:Total time: 2.421 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

1 个答案:

答案 0 :(得分:0)

完成这些步骤并解决您的问题:

1)将图像剪切粘贴到桌面上。

2)在编辑器中打开它保存为png。没有重命名文件名。

3)将.png图像复制粘贴到可绘制文件夹中。

相关问题