PhoneGap中文网

 找回密码
 立即注册
查看: 14851|回复: 3
打印 上一主题 下一主题

ionic browser add crosswalk 报错

[复制链接]

2

主题

8

帖子

34

积分

新手上路

Rank: 1

积分
34
跳转到指定楼层
楼主
发表于 2015-7-23 15:55:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
ionic browser add crosswalk时报错。
项目下build文件夹都被删除了,找不到旧的apk和打包后的apk。
这是什么问题?
  1. D:\project>ionic browser add crosswalk
  2. Adding crosswalk browser
  3. You are running cordova CLI 4.3.0 - installing Cordova Android and Crosswalk man
  4. ually
  5. Downloading: https://github.com/driftyco/cordova-crosswalk-engine/archive/c0.7.1
  6. .zip

  7. Downloaded cordova-crosswalk-engine
  8. Downloading: https://github.com/driftyco/cordova-android/archive/c0.6.1.zip

  9. Finished downloading cordova-android v4.0.x

  10. Altered permissions for Android Paths

  11. Downloaded Cordova Android for Crosswalk
  12. Downloading: https://download.01.org/crosswalk/releases/crosswalk/android/stable
  13. /12.41.296.5/arm/crosswalk-webview-12.41.296.5-arm.zip
  14. Downloading: https://download.01.org/crosswalk/releases/crosswalk/android/stable
  15. /12.41.296.5/x86/crosswalk-webview-12.41.296.5-x86.zip
  16. [=========                    ]  34%  144.6s
  17. Copying over Crosswalk Webview (x86) to the Crosswalk Engine

  18. Finished copying Crosswalk Webview (x86) to the Crosswalk Engine
  19. [=============================]  100%  0.0s
  20. Copying over Crosswalk Webview (arm) to the Crosswalk Engine

  21. Finished copying Crosswalk Webview (arm) to the Crosswalk Engine

  22. Downloaded Crosswalk webviews

  23. Removed old Cordova Android platform
  24. Added ./engine/cordova-android-c0.6.1/ platform

  25. Added Cordova Android 4.0
  26. 4.0.0-dev
  27. Error: [TypeError: Uh oh!
  28. Invalid Version: ]
  29. TypeError: Uh oh!
  30. Invalid Version:
  31.     at new SemVer (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node
  32. _modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\semver\semver
  33. .js:271:11)
  34.     at compare (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_mo
  35. dules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\semver\semver.js
  36. :424:10)
  37.     at Function.lt (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\nod
  38. e_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\semver\semve
  39. r.js:458:10)
  40.     at Object.module.exports.framework.install (C:\Users\syni0515\AppData\Roamin
  41. g\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-l
  42. ib\src\plugman\platforms\android.js:150:62)
  43.     at installWrapper (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\
  44. node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\src\platforms\platform
  45. s.js:77:32)
  46.     at Object.ActionStack.process (C:\Users\syni0515\AppData\Roaming\npm\node_mo
  47. dules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\src\plugma
  48. n\util\action-stack.js:68:25)
  49.     at handleInstall (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\n
  50. ode_modules\ionic-app-lib\node_modules\ionic-cordova-lib\src\plugman\install.js:
  51. 554:20)
  52.     at C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_modules\ion
  53. ic-app-lib\node_modules\ionic-cordova-lib\src\plugman\install.js:346:28
  54.     at _fulfilled (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node
  55. _modules\q\q.js:787:54)
  56.     at self.promiseDispatch.done (C:\Users\syni0515\AppData\Roaming\npm\node_mod
  57. ules\ionic\node_modules\q\q.js:816:30)
  58.     at Promise.promise.promiseDispatch (C:\Users\syni0515\AppData\Roaming\npm\no
  59. de_modules\ionic\node_modules\q\q.js:749:13)
  60.     at C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q
  61. .js:509:49
  62.     at flush (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_modu
  63. les\q\q.js:108:17)
  64.     at process._tickCallback (node.js:355:11)

  65. An error with adding Crosswalk browser occured TypeError: Uh oh!
  66. Invalid Version:

  67. TypeError: Uh oh!
  68. Invalid Version:
  69.     at new SemVer (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node
  70. _modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\semver\semver
  71. .js:271:11)
  72.     at compare (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_mo
  73. dules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\semver\semver.js
  74. :424:10)
  75.     at Function.lt (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\nod
  76. e_modules\ionic-app-lib\node_modules\ionic-cordova-lib\node_modules\semver\semve
  77. r.js:458:10)
  78.     at Object.module.exports.framework.install (C:\Users\syni0515\AppData\Roamin
  79. g\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-l
  80. ib\src\plugman\platforms\android.js:150:62)
  81.     at installWrapper (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\
  82. node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\src\platforms\platform
  83. s.js:77:32)
  84.     at Object.ActionStack.process (C:\Users\syni0515\AppData\Roaming\npm\node_mo
  85. dules\ionic\node_modules\ionic-app-lib\node_modules\ionic-cordova-lib\src\plugma
  86. n\util\action-stack.js:68:25)
  87.     at handleInstall (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\n
  88. ode_modules\ionic-app-lib\node_modules\ionic-cordova-lib\src\plugman\install.js:
  89. 554:20)
  90.     at C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_modules\ion
  91. ic-app-lib\node_modules\ionic-cordova-lib\src\plugman\install.js:346:28
  92.     at _fulfilled (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node
  93. _modules\q\q.js:787:54)
  94.     at self.promiseDispatch.done (C:\Users\syni0515\AppData\Roaming\npm\node_mod
  95. ules\ionic\node_modules\q\q.js:816:30)
  96.     at Promise.promise.promiseDispatch (C:\Users\syni0515\AppData\Roaming\npm\no
  97. de_modules\ionic\node_modules\q\q.js:749:13)
  98.     at C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_modules\q\q
  99. .js:509:49
  100.     at flush (C:\Users\syni0515\AppData\Roaming\npm\node_modules\ionic\node_modu
  101. les\q\q.js:108:17)
  102.     at process._tickCallback (node.js:355:11)

  103. Uh oh!
  104. Invalid Version:  (CLI v1.6.1)

  105. Your system information:

  106. Cordova CLI: 4.3.0
  107. Ionic Version: 1.0.1
  108. Ionic CLI Version: 1.6.1
  109. Ionic App Lib Version: 0.3.3
  110. OS: Windows 7 SP1
  111. Node Version: v0.12.5
复制代码



回复

使用道具 举报

493

主题

2035

帖子

6894

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6894
沙发
发表于 2015-7-23 22:04:24 | 只看该作者
新的安装方式变了
参考这个文档

找到4.X+ 的安装  现在更简单了直接集成cordova 插件了,一句话搞定

https://crosswalk-project.org/documentation/cordova.html
回复 支持 反对

使用道具 举报

2

主题

8

帖子

34

积分

新手上路

Rank: 1

积分
34
板凳
 楼主| 发表于 2015-7-24 11:29:44 | 只看该作者
本帖最后由 skytom 于 2015-7-24 11:47 编辑
admin 发表于 2015-7-23 22:04
新的安装方式变了
参考这个文档

多谢坛主解答!
但是这样一来,原来apk就没有了?
导入Eclipse出现了纯数字名字的项目,怎么改都报错,删除了该项目,主项目也没报错。
回复 支持 反对

使用道具 举报

493

主题

2035

帖子

6894

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
6894
地板
发表于 2015-7-24 22:46:08 | 只看该作者
skytom 发表于 2015-7-24 11:29
多谢坛主解答!
但是这样一来,原来apk就没有了?
导入Eclipse出现了纯数字名字的项目,怎么改都报错,删 ...

新的这个你用命令打包试试
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2025-1-4 20:35 , Processed in 0.061534 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表