Failure:build failed with an exception. Crunching Cruncher Screen.png failed

Source: Internet
Author: User

When you test the Ionic template Project Cutepuppypics yourself, follow the https://github.com/driftyco/ionic/blob/2.0/CHANGELOG.md# Angular-update-to-200-rc1 after upgrading the ANGULARJS version, running Cordova build Android will always report the following error when compiling the project

Failure:build failed with a exception.* what went wrong:execution failed for task ': mergedebugresources ' .> Some file Crunching failed, see logs for details* try:run with--STACKTRACE option to get the stack trace. Run with--info or--debug option to get more log output. BUILD failedtotal time:4.738 secserror:error code 1 for command:cmd with args:/s,/c, "G:\Viola\cutePuppyPics\platforms\ Android\gradlew Cdvbuilddebug-b G:\viola\cutepuppypics\platforms\android\build.gradle-dorg.gradle.daemon=true- Pandroid.usedeprecatedndk=true "

Try running ionic build Android again with the following error message:

: Generatedebugresvalues Up-to-date
: Generatedebugresources Up-to-date
: Mergedebugresourcesaapt err (facade for 127747075): libpng error:read Error
FAILED

Failure:build failed with an exception.

* What went wrong:
Execution failed for task ': Mergedebugresources '.
> Crunching Cruncher screen.png failed, see logs

* Try:

BUILD FAILED

Total time:3.835 secs
Run with--STACKTRACE option to get the stack trace. Run with--info or--debug option to get more log output.
Error:error Code 1 for command:cmd with args:/s,/c, "G:\Viola\cutePuppyPics\platforms\android\gradlew Cdvbuildde
Bug-b g:\viola\cutepuppypics\platforms\android\build.gradle-dorg.gradle.daemon=true-pandroid.usedeprecatedndk=t
Rue

The last reason is because in the run Ionic resources, the resulting picture has an error, after rebuilding, then run there is no problem.

Failure:build failed with an exception. Crunching Cruncher Screen.png failed

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.