I have many 9patch png files that worked fine in Eclipse IDE, but when I try using them in Android studio, I get the error:
> Error: Some file crunching failed, see logs for details
I have tried disabling the cruncher in many ways, but none of them works. How can I successfully disable cruncher in Android studio?
Here is my current graddle configuration which still does not disable the cruncher.
android {
compileSdkVersion 26
buildToolsVersion '26.0.0'
enforceUniquePackageName = false
useLibrary 'org.apache.http.legacy'
if (project.hasProperty('devBuild')) {
aaptOptions.cruncherEnabled = false
}
lintOptions {
disable "ResourceType"
}
defaultConfig {
applicationId "com.ducky.learnstation"
minSdkVersion 16
targetSdkVersion 18
multiDexEnabled true
aaptOptions.setProperty("cruncherEnabled", false);
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
aaptOptions {
cruncherEnabled = false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}