我是使用 phonegap 构建移动应用程序的新手,所以我需要任何人的绝望帮助。
我已按照此处提到的步骤进行操作, 我参考了
部署到模拟器,构建成功。
\xampp\htdocs\projects\mobilesapps\blackberry\test>ant blackberry load-simulator
Buildfile: \xampp\htdocs\projects\mobilesapps\blackberry\test\build.
xml
blackberry:
load-simulator:
generate-cod-name:
[echo] Generated name: test.cod
clean:
[delete] Deleting directory \xampp\htdocs\projects\mobilesapps\blackberry\test\build
package-app:
[mkdir] Created dir: \xampp\htdocs\projects\mobilesapps\blackberry\test\build\widget
[copy] Copying 26 files to \xampp\htdocs\projects\mobilesapps\blackberry\
test\build\widget
[zip] Building zip: \xampp\htdocs\projects\mobilesapps\blackberry\test\build\test.zip
build:
[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating application archive
[exec] [INFO] Parsing config.xml
[exec] [INFO] Populating application source
[exec] [INFO] Compiling BlackBerry WebWorks applicatio
n
[exec] [INFO] Generating output files
[exec] [INFO] BlackBerry WebWorks application packagin
g complete
load-simulator:
[echo] Simulator directory=C:\Program Files (x86)\Research In Motion\BlackB
erry WebWorks SDK 2.3.1.5\simpack\7.0.0.318
[echo] Simulator directory=C:\Program Files (x86)\Research In Motion\BlackB
erry WebWorks SDK 2.3.1.5\simpack\7.0.0.318
[echo] Simulator executable=C:\Program Files (x86)\Research In Motion\Black
Berry WebWorks SDK 2.3.1.5\simpack\7.0.0.318/9930.bat
[echo] Closing all running simulators...
[exec] No sessions currently running.
[exec] Result: 1
[echo] MDS directory=C:\Program Files (x86)\Research In Motion\BlackBerry W
ebWorks SDK 2.3.1.5\mds
[copy] Copying 4 files to C:\Program Files (x86)\Research In Motion\BlackBe
rry WebWorks SDK 2.3.1.5\simpack\7.0.0.318
BUILD SUCCESSFUL
Total time: 24 seconds
而且我尝试部署到移动设备,phonegap 没有成功构建应用程序。
黑莓 WebWorks SDK 2.3.1.5
Ant:2013 年 7 月 8 日编译的 Apache Ant(TM) 版本 1.9.2
关于java:
java 版本 "1.6.0_43" Java(TM) SE Runtime Environment (build 1.6.0_43-b01) Java HotSpot(TM) Client VM (build 20.14-b01, 混合模式, 共享)
黑莓桌面管理器:7.1.0
\xampp\htdocs\projects\mobilesapps\blackberry\test>ant blackberry load-device
Buildfile: \xampp\htdocs\projects\mobilesapps\blackberry\test\build.
xml
blackberry:
load-device:
generate-cod-name:
[echo] Generated name: test.cod
clean:
[delete] Deleting directory \xampp\htdocs\projects\mobilesapps\blackberry\
test\build
package-app:
[mkdir] Created dir: \xampp\htdocs\projects\mobilesapps\blackberry\test\build\widget
[copy] Copying 26 files to \xampp\htdocs\projects\mobilesapps\blackberry\
test\build\widget
[zip] Building zip: \xampp\htdocs\projects\mobilesapps\blackberry\test\build\test.zip
load-device:
[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating application archive
[exec] [INFO] Parsing config.xml
[exec] [INFO] Populating application source
[exec] [INFO] Compiling BlackBerry WebWorks applicatio
n
[exec] [INFO] Starting signing tool
[exec] [INFO] Signing complete
[exec] [INFO] Generating output files
[exec] [INFO] BlackBerry WebWorks application packagin
g complete
[exec] RIM Wireless Handheld Java Loader
[exec] Copyright 2001-2009 Research In Motion Limited
[exec] Connecting to device...debug: COM error during Open: (0x80040008)
[exec] Error: invalid password
BUILD FAILED
\xampp\htdocs\projects\mobilesapps\blackberry\test\build.xml:45: The
following error occurred while executing this line:
\xampp\htdocs\projects\mobilesapps\blackberry\test\blackberry.xml:53
: exec returned: 29
Total time: 30 seconds
任何人请指导我。我今天需要为我的一位客户完成这项工作。谢谢