0

我正在开发一个 phonegap 项目并尝试将其部署在 Blackberry 10 模拟器上。我的模拟器在 VMware 播放器上运行。

根据 phonegap -Getting started guides,我正在尝试从命令行在我的 BB10 模拟器中部署项目并收到以下错误 -

package-app:
[mkdir] Created dir: D:\example\build\widget
 [copy] Copying 25 files to D:\example\build\widget
 [copy] Copying 3 files to C:\Program Files\Research In Motion\BlackBerry 10
WebWorks SDK 1.0.4.11\Framework\ext
  [zip] Building zip: D:\example\build\cordovaExample.zip

build:
 [exec]
 [exec] D:\example>"C:\Program Files\Research In Motion\BlackBerry 10 WebWor
 ks SDK 1.0.4.11\third_party\node\windows\node.exe" "C:\Program Files\Research In
 Motion\BlackBerry 10 WebWorks SDK 1.0.4.11\lib\bbwp.js" D:\example\build\cordov
 aExample.zip -o D:\example\build --loglevel error
 [exec] [BUILD]   Populating application source
 [exec] [BUILD]   Parsing config.xml
 [exec] [BUILD]   Generating output files
 [exec] [BUILD]   BAR packaging complete

 load-simulator:
 [echo] This tool will not open the simulator for you
 [exec] Info: Sending request: Install and Launch
 [exec] Info: Action: Install and Launch
 [exec] Info: File size: 695220
 [exec] Info: Installing org.apache.cordova.example.testRel_ova_examplefce1a
  a22...
 [exec] Info: Processing 695220 bytes
 [exec] Info: Progress 64%...
 [exec] Info: Progress 100%...
 [exec] actual_dname::org.apache.cordova.example.testRel_ova_examplefce1aa22

 [exec] actual_id::testRel_ova_examplefce1aa22
 [exec] actual_version::1.0.0.0
 [exec] result::success
 [exec] Info: Launching org.apache.cordova.example.testRel_ova_examplefce1aa
  22...
 [exec] Error: Cannot post launcher object, something is wrong

 BUILD FAILED
 D:\example\build.xml:55: The following error occurred while executing this line:

 D:\example\qnx.xml:105: exec returned: 2

 Total time: 10 seconds

现在,一切都很好,直到它说result:success并且问题出现了。它说“无法发布启动器对象。这里出了点问题”。

我是 BB 环境的新手,对“某事”在此处出错的声明感到困惑。任何人都可以对此进行调查并阐明问题所在吗?为什么会出现这种情况?

4

1 回答 1

0

问题在于模拟器启动。安装VMware player后,一旦在其中使用了BB模拟器,等待环境加载。检查屏幕上出现的黑莓标志标志,标志周围会出现一个进度条。

除非模拟器完全加载到 VMware 播放器中,否则无法将应用程序部署到其中。

于 2013-05-16T12:37:08.020 回答