Information:Gradle tasks [:app:assembleDebug]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72102Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42102Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig 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
D:\AndroidStudioProjects\YiYaoBa\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\drawable-mdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\AndroidStudioProjects\YiYaoBa\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\drawable-xhdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\AndroidStudioProjects\YiYaoBa\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\drawable-xhdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\AndroidStudioProjects\YiYaoBa\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\drawable-hdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\AndroidStudioProjects\YiYaoBa\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\drawable-hdpi\abc_spinner_mtrl_am_alpha.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
D:\AndroidStudioProjects\YiYaoBa\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.2\res\drawable-hdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng error: Not a PNG file
:app:mergeDebugResources FAILED
D:\AndroidStudioProjects\YiYaoBa\app\src\main\res\mipmap-hdpi\defaultcovers.png
Error:Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Program Files\Android\android-sdk\build-tools\21.1.1\aapt.exe'' finished with non-zero exit value 42
Error:Execution failed for task ':app:mergeDebugResources'.
> D:\AndroidStudioProjects\YiYaoBa\app\src\main\res\mipmap-hdpi\defaultcovers.png: Error: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Program Files\Android\android-sdk\build-tools\21.1.1\aapt.exe'' finished with non-zero exit value 42
Information:BUILD FAILED
Information:Total time: 17.052 secs
Information:2 errors
Information:0 warnings
Information:See complete output in console
你查看一下defaultcovers.png。是不是图片有问题追问
没有问题 能显示出来 把这张图片删了 错误会继续指向下一张图片
本回答被网友采纳