2

I updated android support library dependencies in build.gradle file then When I am trying to build project its showing below error:

AAPT: libpng error: Not a PNG file
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> Some file crunching failed, see logs for details

It's working fine when I am using old dependencies:

old dependencies:

compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:percent:23.1.1'
compile 'com.android.support:support-v13:23.1.1'

new dependencies:

 compile 'com.android.support:support-v4:24.0.0-alpha1'
 compile 'com.android.support:appcompat-v7:24.0.0-alpha1'
 compile 'com.android.support:design:24.0.0-alpha1'
 compile 'com.android.support:percent:24.0.0-alpha1'
 compile 'com.android.support:support-v13:24.0.0-alpha1'

Can anyone help me out from this issue?
Thank you very much for your time and assistance in this matter.

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96

1 Answers1

0

There is some related issue that makes the problem arise:

  1. This is probably related to the image type which is not a png type but renamed as a png one. You can check your image for the type.

  2. The project is using an old build project, so try to clean and rebuild your project.

  3. As the last resort, you can try File->Invalidate Caches/Restart.. from Android Studio menu.

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96