PhoneGap中文网

标题: ionic browser add crosswalk 报错 [打印本页]

作者: skytom    时间: 2015-7-23 15:55
标题: ionic browser add crosswalk 报错
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
复制代码




作者: admin    时间: 2015-7-23 22:04
新的安装方式变了
参考这个文档

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

https://crosswalk-project.org/documentation/cordova.html
作者: skytom    时间: 2015-7-24 11:29
本帖最后由 skytom 于 2015-7-24 11:47 编辑
admin 发表于 2015-7-23 22:04
新的安装方式变了
参考这个文档

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

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

新的这个你用命令打包试试




欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2