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