今天在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
本文介绍了一种在Android Studio中遇到的资源合并错误及其解决方法。错误源于非标准PNG文件导致的资源打包失败,文中提供了详细的排查步骤及常见问题点。

6638

被折叠的 条评论
为什么被折叠?



