Some file crunching failed, see logs for details solution, crunchinglogs
Finally, the cause and solution of Some file crunching failed and see logs for details errors are mentioned. However, this article will solve this problem.
Some file crunching failed occurs. see logs for details. There are two reasons for this error (in fact, this is actually a problem. Check the problem)
1. When building Gradle, Gradle checks whether the file suffix has been modified. This problem occurs when .jpg is modified to .png.
2,. 9. The image is incorrect.
To solve the problem:
1. When building Gradle, Gradle checks whether the file suffix has been modified. This problem occurs when .jpg is modified to .png.
To solve this problem, you only need to add the bypass check in the build. gradle file.
The specific code is:
aaptOptions { cruncherEnabled = false useNewCruncher = false }
The added build. gradle code
android { compileSdkVersion 17 buildToolsVersion "25.0.0" aaptOptions { cruncherEnabled = false useNewCruncher = false } defaultConfig { applicationId "com.autophix.dnt" minSdkVersion 11 targetSdkVersion 21 } buildTypes { release { minifyEnabled true proguardFiles 'proguard-project.txt' } }}
Click Sycn Project.
2. 9. Incorrect Image
Android Studio is very strict with image auditing, and there is no problem with Eclipse, so there is no problem with Android Studio.
The following are the steps.
Some file crunching failed, see logs for details
Click Gradle Console in the lower-right corner of Android Studio to view error details.
Error: java. lang. RuntimeException: Crunching Cruncher bg_titlebar_shadow.9.png failed, see logs
Find the. 9 image in the corresponding path
Click Show bad patches below to view the error area
Click show content below to view the Extensible part.
The result is as follows:
We can see that the red line is the error interval. If we narrow down all the left and top points into one, there will be no red lines, as shown in:
If you do not see the red line, the problem is solved. Repeat all the. 9 images and build them again.