Some file crunching failed, see logs for details solution, crunchinglogs

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.