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 {2 compilesdkversion 3 buildtoolsversion "23.0.3" 4 5 aaptoptions {6 Cruncherenabled = False 7 Usenewcruncher = False 8 9 } defaultconfig { One ApplicationID "Com.xxx.xxx" minsdkversion 1513 targetsdkversion 2214 versioncode 215 Versionname "1.0.2" ndk { //Setup supported so Library architecture abifilters ' Armeabi ', ' x86 ', ' armeabi-v7a ', ' x86_64 ', ' arm64-v8a ' }20 }21}
What is the cause of this error?
1. When building the Gradle, Gradle will check to see if the suffix name of the file has been modified;
2. Most of them appear on the picture, and. jpg is changed to. png this problem occurs;
This problem may also occur with 3.9patch images.
"This article reproduced, used for their own study, if there is an opinion, can be contacted to delete"
Reprint please indicate the source:
Http://www.cnblogs.com/why168888/p/5925756.html
This article is from:"Edwin Blog Garden"
"Reprinted" Android Gradle Build error:some file crunching failed, see logs for details solution