Some file crunching failed, see logs for details

Jayesh picture Jayesh · Apr 8, 2016 · Viewed 57.2k times · Source

Today I got update for android studio 2.0 in stable version.

I update it and it restarted.

Then when It opens my existing project, it ask me to update my gradle plugin to 2.0 to get advantages of "instant run" and other features to my current project of android studio 2.0

So I update it and it sets to

classpath 'com.android.tools.build:gradle:2.0.0'

but when I clean the project it gives me below error

AAPT err(Facade for 1961798984): libpng error: Read Error.

Error:Execution failed for task ':app:mergeDebugResources'.

Some file crunching failed, see logs for details

I tried to fixed it many times but it didn't solve.

Can anyone know what is the reason for this error ?

Answer

Hoshouns picture Hoshouns · Apr 17, 2017

You can try to add this to your app build.gradle file

 android {
    aaptOptions {  
                cruncherEnabled = false  
            } 
        }