Error Message: 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" 4
5 aaptOptions { 6 cruncherEnabled = false 7 useNewCruncher = false 8 9 }
10 defaultConfig { 11 applicationId "com.xxx.xxx" 12 minSdkVersion 15 13 targetSdkVersion 22 14 versionCode 2 15 versionName "1.0.2" 16 ndk { 17 // Set the supported SO library architecture 18 abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a' 19 } 20 } 21 }
What is the reason for this error?
1. When building Gradle, Gradle will check whether the file extension has been modified;
2. Generally, most of them appear on pictures. This problem occurs when .jpg is modified to .png;
This problem may also occur with 3.9 patch pictures.
Read More:
- Unable to import maven project: See logs for details [Solved]
- [Solved] Android Studio Manifest merger failed with multiple errors, see logs
- [Solved] Gradle NullPointerException at com.android.build.gradle.internal.ndk.NdkHandler.getPlatformVersion
- [Solved] Android Error: Compilation failed; see the compiler error output for details
- [Solved] Manifest merger failed with multiple errors, see logs
- [Solved] Manifest merger failed with multiple errors, see logs
- [Solved] Manifest merger failed with multiple errors, see logs
- Manifest merger failed with multiple errors, see logs [How to Solve]
- Flutter android studio runs gradle build error: Could not resolve all artifacts for configuration’:classpath’.
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- Android Error:Internal error:org.gradle.tooling.BuildException: Could not execute build…
- AAPT2 error: check logs for details [How to Solve]
- [Solved] Unity package Error: CommandInvokationFailure: Gradle build failed.
- Android Studio: Gradle project sync failed [How to Solve]
- [Solved] SSM Project Error: Error during artifact deployment. See server log for details.
- [Solved] SpringMVC Error: war exploded: Error during artifact deployment. See server log for details.
- [Solved] Vivado Error: vivado 12-8300 launch hls failed please see vivado hls.log for details
- [Solved] Android Studio Compile error: Cannot use connection to Gradle distribution . as it has been stopped.
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“
- [Solved] Arm Server kibana7.4.1 Error: Sending Logstash logs to /home/logstash-6.8.4/logs which is now configured via log4j2.properties