gpt4 book ai didi

将 Crosswalk 添加到 Ionic 后,Android 构建失败

转载 作者:塔克拉玛干 更新时间:2023-11-02 18:58:12 27 4
gpt4 key购买 nike

对 Ionic 添加 Crosswalk 感到非常兴奋,但现在我的项目无法构建。该项目在更新和添加 Crosswalk 之前正在编译和工作。有人对我如何纠正以下错误有任何建议吗?我宁愿不回滚。感谢上帝的版本控制:)

系统信息:

  • 操作系统:Windows 8
  • 节点版本:v0.10.32
  • Cordova CLI:4.2.0
  • ionic 版本:1.0.0-beta.14
  • Ionic CLI 版本:1.3.1
  • AngularJS v1.3.8

WARNING [Project: :org.apache.cordova.engine.crosswalk:382300-xwalk_core_library] Current NDK support is deprecated. 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

ERROR: Unable to open PNG file

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

Error Code: 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

ERROR: Unable to open PNG file

:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':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

Error Code: 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

ERROR: Unable to open PNG file

最佳答案

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

关于将 Crosswalk 添加到 Ionic 后,Android 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27946793/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com