Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some file crunching failed, see logs for details

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 ?

like image 665
Jayesh Avatar asked Apr 08 '16 09:04

Jayesh


1 Answers

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

 android {
    aaptOptions {  
                cruncherEnabled = false  
            } 
        }
like image 163
Hoshouns Avatar answered Oct 19 '22 05:10

Hoshouns