2016-04-20 36 views
1

我試過改變擴展的方式,但它也不能解決問題,有沒有其他辦法嗎?Android的工作室不工作,而Gradle不編譯,並有錯誤

:app:mergeDebugResources 

:app:prepareComAndroidSupportDesign2330Library 

:app:prepareComAndroidSupportRecyclerviewV72330Library 

:app:prepareComAndroidSupportAnimatedVectorDrawable2330Library 

:app:prepareComAndroidSupportSupportVectorDrawable2330Library 

:app:preReleaseBuild UP-TO-DATE 

:app:generateDebugResources 

:app:generateDebugAssets UP-TO-DATE 

:app:generateDebugBuildConfig 

:app:checkDebugManifest 

:app:preDebugBuild UP-TO-DATE 

:app:compileDebugRenderscript 

:app:preBuild UP-TO-DATE 

:app:prepareComAndroidSupportSupportV42330Library 

:app:generateDebugResValues UP-TO-DATE 

Information:Gradle tasks [:app:clean, :app:generateDebugSources, 

:app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, 

:app:generateDebugAndroidTestSources, :app:assembleDebug] 

:app:compileDebugAidl 

AAPT err(Facade for 1614764273): libpng error: Not a PNG file 

AAPT err(Facade for 1614764273): libpng error: Not a PNG file 

:app:clean 

:app:prepareComAndroidSupportAppcompatV72330Library 

:app:prepareDebugDependencies 

:app:mergeDebugAssets 

AAPT err(Facade for 1919759698): libpng error: Not a PNG file 

AAPT err(Facade for 2070257548): libpng error: Not a PNG file 

AAPT err(Facade for 246113197): libpng error: Not a PNG file 

AAPT err(Facade for 974013731): libpng error: Not a PNG file 

Error:Execution failed for task ':app:mergeDebugResources'. 

Some file crunching failed, see logs for details

Information:BUILD FAILED 

回答

1

希望這有助於

剪切圖像,並粘貼系統中的任何地方,並與各自的編輯器打開每個並保存爲相同的,但在PNG格式,然後複製並再次粘貼到可繪製文件夾。

+0

檢查http://stackoverflow.com/questions/5387671/ipad-png-crush-error –

+0

解決的問題,PNG,現在我面對這個錯誤 錯誤:執行失敗的任務「:應用程序:processDebugResources」。 > com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:進程'命令'C:\ Users \ User \ AppData \ Local \ Android \ android-sdk \ build-tools \ 23.0 .3 \ aapt.exe''以非零退出值結束1 –

+0

檢查http://stackoverflow.com/questions/29045129/android-java-exe-finished-with-non-zero-exit-value-1 –