Android Gradle Build Error: Some file crunching failed, see logs for details solution, gradlecrunching
Error Log: Error: java. lang. RuntimeException: Some file crunching failed, see logs for details
Log:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task': app: mergeDebugResources '.
> Error: java. lang. RuntimeException: Crunching Cruncher ic_default_home_new.png failed, see logs
* Try:
Run with -- stacktrace option to get the stack trace. Run with -- info or -- debug option to get more log output.
The solution is as follows:
1 android {2 compileSdkVersion 23 3 buildToolsVersion "23.0.3" 45 aaptOptions {6 cruncherEnabled = false 7 useNewCruncher = false 8 9}10 defaultConfig {11 applicationId "com. security. browser. xinj "12 minSdkVersion 1513 targetSdkVersion 2214 versionCode 215 versionName" 1.0.1 "16 ndk {17 // set the supported SO Library Architecture 18 abiFilters 'armeabi ', 'x86 ', 'armeabi-v7a ', 'x86 _ 64', 'arm64-v8a '19} 20} 21}
The cause of this error is that when Gradle is built, Gradle checks whether the file suffix has been modified,
This problem occurs when .jpg is changed to .png.