2015-12-30 22 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圖像複製粘貼到可繪製文件夾中。