Android build failed after adding Crosswalk to Ionic

I am thrilled that Ionic is adding Crosswalk, and now my project will not be built. The project compiled and worked before upgrading and adding Crosswalk. Anyone have any suggestions on how I can fix the error below? I prefer not to roll back. Thank you for version control :)

System Information:

  • OS: Windows 8
  • Node Version: v0.10.32
  • Cordoba CLI: 4.2.0
  • Ionic version: 1.0.0-beta.14
  • Ionic CLI Version: 1.3.1
  • AngularJS v1.3.8

WARNING [Project :: org.apache.cordova.engine.crosswalk: 382300-xwalk_core_library] Current NDK support is deprecated. An alternative will be provided in the future.

: mergeDebugResourcesC: \ Users \\ Android platform \ builds \\ intermediate parsed-AAR \ android.org.apache.cordova.engine.crosswalk \ rsgapp382300-xwalk_core_library \ undefined \ Debug \ Res \ hood-HFC-v4 \ color_picker_advanced_select

ERROR: Cannot open PNG file

Error: the command could not be completed: C: \ Users \ AppData \ Local \ Android \ sdk \ build-tools \ 21.0.2 \ aapt.exe si C: \ Users \ platform \ android \ build \ intermediates \ exploded-aar \ android .org.apache.cordova. engine.crosswalk 382300-xwalk_core_library \ unpecified \ debug \ res \ drawable-hdpi-v4 \ color_picker_advanced_select_handle.png -o C: \ Users \ platform \ android \ build \ intermediates \ res \ debug \ drawable-hdpi-v4 \ color_picker_advanced_select

Error Code: 42

Conclusion: C: \ Users \ platform \ android \ build \ intermediates \ exploded-aar \ android.org.apache.cordova.engine.crosswalk382300-xwalk_core_library \ unspecified \ debug \ res \ drawable-hdpi-v4 \ color_pick er_advanced_select_handle.png

ERROR: Cannot open PNG file

: mergeDebugResources FAILED

FAILURE: assembly failure with exception.

What went wrong: execution completed for task ': mergeDebugResources'.

Error: Could not execute the command: C: \ Users \ AppData \ Local \ Android \ sdk \ build-tools \ 21.0.2 \ aapt.exe s -i C: \ Users \ platform \ android \ build \ intermediates \ exploded-aar \ android.org.apache.cordova.engine.crosswalk 382300-xwalk_core_library \ unpecified \ debug \ res \ drawable-hdpi-v4 \ color_picker_advanced_select_handle.png -o C: \ Users \ platform \ android \ build \ intermediates \ res \ Debug \ range hood-HDI-v4 \ color_picker_advanced_select_handle.png

Error Code: 42

Conclusion: C: \ Users \ platform \ android \ build \ intermediates \ exploded-aar \ android.org.apache.cordova.engine.crosswalk382300-xwalk_core_library \ unpecified \ debug \ res \ drawable-hdpi-v4 \ color_picker_advanced_select_handle. PNG

ERROR: Cannot open PNG file

+8
android cordova ionic-framework crosswalk-runtime
source share
1 answer

It looks like you were getting similar errors in this question , which was that on Windows path names are limited to 260 characters, so going to a directory with a shorter path name should fix your problems.

+3
source share

All Articles