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.
Here's how to fix it:
1 Android {2Compilesdkversion 233Buildtoolsversion "23.0.3"4 5 aaptoptions { 6 cruncherenabled = false 7 USENEWCR Uncher = false 8 9 } Ten Defaultconfig { OneApplicationID "Com.security.browser.xinj" AMinsdkversion 15 -Targetsdkversion 22 -Versioncode 2 theVersionname "1.0.1" - NDK { - //set the supported so library schema -Abifilters ' Armeabi ', ' x86 ', ' armeabi-v7a ', ' x86_64 ', ' arm64-v8a ' + } - } +}
The reason for this error is that when building gradle, Gradle will check to see if the suffix of the file has been modified.
Half of the majority is appearing on the picture, and. jpg is changed to. png. This problem occurs.
Android Gradle Build error:some file crunching failed, see logs for details workaround