今天在AndroidStudio中导入了一个项目,运行显示下列异常信息
Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement810Library UP-TO-DATE
:app:prepareComQozixTileview214Library UP-TO-DATE
:app:prepareComTimehopStickyheadersrecyclerviewLibrary043Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:mergeDebugShaders UP-TO-DATE
:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
AAPT err(Facade for 977769301): libpng error: Read Error
Error:Execution failed for task ':app:mergeDebugResources'.
> Crunching Cruncher app_icon.png failed, see logs
Information:BUILD FAILED
Information:Total time: 1.31 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
这里备注一下解决方案:
查看报错日志
Error:Execution failed for task ‘:app:mergeDebugResources’.
Crunching Cruncher app_icon.png failed, see logs