"Reprinted" Android Gradle Build error:some file crunching failed, see logs for details solution

Source: Internet
Author: User

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

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.