简体   繁体   中英

Issues after updating android support library dependencies

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM