简体   繁体   English

将Crosswalk添加到Ionic后,Android Build失败

[英]Android Build failed after adding Crosswalk to Ionic

Got excited about Ionic adding Crosswalk and now my project won't build. 对Ionic添加Crosswalk感到很兴奋,现在我的项目无法构建。 The project was compiling and working before updating and adding Crosswalk. 在更新和添加Crosswalk之前,该项目正在编译并正在工作。 Anyone have any suggestions on how I can correct the error below? 有人对我如何纠正以下错误有任何建议? I prefer not to rollback. 我宁愿不回滚。 Thank goodness for version control :) 感谢版本控制:)

System information: 系统信息:

  • OS: Windows 8 作业系统:Windows 8
  • Node Version: v0.10.32 节点版本:v0.10.32
  • Cordova CLI: 4.2.0 科尔多瓦CLI:4.2.0
  • Ionic Version: 1.0.0-beta.14 离子版本:1.0.0-beta.14
  • Ionic CLI Version: 1.3.1 Ionic CLI版本:1.3.1
  • AngularJS v1.3.8 AngularJS v1.3.8

WARNING [Project: :org.apache.cordova.engine.crosswalk:382300-xwalk_core_library] Current NDK support is deprecated. 警告[项目::org.apache.cordova.engine.crosswalk:382300-xwalk_core_library]当前不支持NDK。 Alternative will be provided in the future. 将来会提供替代方案。

:mergeDebugResourcesC:\\Users\\platforms\\android\\build\\intermediates\\exploded-aar\\android.org.apache.cordova.engine .crosswalk\\rsgapp382300-xwalk_core_library\\unspecified\\debug\\res\\drawable-hdpi-v4\\color_picker_advanced_select_handle.png :mergeDebugResourcesC:\\ Users \\ platforms \\ android \\ build \\ intermediates \\ exploded-aar \\ android.org.apache.cordova.engine .crosswalk \\ rsgapp382300-xwalk_core_library \\ unspecified \\ debug \\ res \\ drawable-hdpi-v4 \\ color_picker_advanced_select_handle.png

ERROR: Unable to open PNG file 错误:无法打开PNG文件

Error: Failed to run command: C:\\Users\\AppData\\Local\\Android\\sdk\\build-tools\\21.0.2\\aapt.exe si C:\\Users\\platforms\\android\\build\\intermediates\\exploded-aar\\android.org.apache.cordova.engine.crosswalk 382300-xwalk_core_library\\unspecified\\debug\\res\\drawable-hdpi-v4\\color_picker_advanced_select_handle.png -o C:\\Users\\platforms\\android\\build\\intermediates\\res\\debug\\drawable-hdpi-v4\\color_picker_advanced_select_handle.png 错误:无法运行命令:C:\\ Users \\ AppData \\ Local \\ Android \\ sdk \\ build-tools \\ 21.0.2 \\ aapt.exe si C:\\ Users \\ platforms \\ android \\ build \\ intermediates \\ exploded-aar \\ android .org.apache.cordova.engine.crosswalk 382300-xwalk_core_library \\ unspecified \\ debug \\ res \\ drawable-hdpi-v4 \\ color_picker_advanced_select_handle.png -o C:\\ Users \\ platforms \\ android \\ build \\ intermediates \\ res \\ debug \\ drawable- hdpi-v4 \\ color_picker_advanced_select_handle.png

Error Code: 42 错误代码:42

Output: C:\\Users\\platforms\\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 输出:C:\\ Users \\ platforms \\ 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: Unable to open PNG file 错误:无法打开PNG文件

:mergeDebugResources FAILED :mergeDebugResources失败

FAILURE: Build failed with an exception. 失败:构建失败,发生异常。

What went wrong: Execution failed for task ':mergeDebugResources'. 出了什么问题:任务':mergeDebugResources'的执行失败。

Error: Failed to run command: C:\\Users\\AppData\\Local\\Android\\sdk\\build-tools\\21.0.2\\aapt.exe s -i C:\\Users\\platforms\\android\\build\\intermediates\\exploded-aar\\android.org.apache.cordova.engine.crosswalk 382300-xwalk_core_library\\unspecified\\debug\\res\\drawable-hdpi-v4\\color_picker_advanced_select_handle.png -o C:\\Users\\platforms\\android\\build\\intermediates\\res\\debug\\drawable-hdpi-v4\\color_picker_advanced_select_handle.png 错误:无法运行命令:C:\\ Users \\ AppData \\ Local \\ Android \\ sdk \\ build-tools \\ 21.0.2 \\ aapt.exe s -i C:\\ Users \\ platforms \\ android \\ build \\ intermediates \\ exploded-aar \\ android.org.apache.cordova.engine.crosswalk 382300-xwalk_core_library \\ unspecified \\ debug \\ res \\ drawable-hdpi-v4 \\ color_picker_advanced_select_handle.png -o C:\\ Users \\ platforms \\ android \\ build \\ intermediates \\ res \\ debug \\ drawable-hdpi-v4 \\ color_picker_advanced_select_handle.png

Error Code: 42 错误代码:42

Output: C:\\Users\\platforms\\android\\build\\intermediates\\exploded-aar\\android.org.apache.cordova.engine.crosswalk382300-xwalk_core_library\\unspecified\\debug\\res\\drawable-hdpi-v4\\color_picker_advanced_select_handle.png 输出:C:\\ Users \\ platforms \\ android \\ build \\ intermediates \\ exploded-aar \\ android.org.apache.cordova.engine.crosswalk382300-xwalk_core_library \\ unspecified \\ debug \\ res \\ drawable-hdpi-v4 \\ color_picker_advanced_select_handle.png

ERROR: Unable to open PNG file 错误:无法打开PNG文件

似乎您遇到了与此问题类似的错误,即在Windows上,路径名限制为260个字符,因此,移至路径名较短的目录应该可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM