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 gra
I've ran into this issue a couple times. The issue I've found is that an asset is either corrupted or has the wrong file extension. In my case it's usually a corrupted image I'd get from the art department. Once I removed the offending file, everything would compile and run just fine.
Basically what's happening is that Android is trying to compress and format the assets and resources, but if one of them is corrupted then it fails.
So try removing any recently added assets or resources.
Lower down the gradle version in build.graddle file to 1.3.0
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}
This problem is caused generally by errors inside the resources files,
Some file crunching failed, see logs for details
most of the times we only see this message all the time, but to have a better diagnostic, delete the folders /build
and his contain in your proyect, then the real problemas will show:
in my case it was a png with size 0 in one of the folders.
I use this code.Its working for me perfectly.
android {
aaptOptions {
cruncherEnabled = false
}
}
simple answer works for sure....
just add below code in the build.gradle(Module:app) of your project:
android {
aaptOptions {
cruncherEnabled = false
}
}
example:
Works 100%...@Ambilpur