2015-12-30 60 views
-4
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 
+2

在这里回答http://stackoverflow.com/questions/23366222/libpng-error-not-a-png-file-error-showing-in-android-studio –

回答

0

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

1)图像裁切贴在桌面上。

2)在编辑器中打开它将其保存为png。无需重命名文件名称。

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