我是使用phonegap构建移动应用程序的新手,所以我需要任何人的绝望帮助。
我按照这里提到的步骤, I refered
部署到模拟器,它的构建成功。
\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
我尝试部署到移动设备,手机屏幕没有成功构建应用程序。
BlackBerry 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运行时环境(版本1.6.0_43-b01) Java HotSpot(TM)客户端VM(版本20.14-b01,混合模式,共享)
Blackberry Desktop Manager: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
任何人请指导我。我今天需要为我的一位客户完成此操作。感谢
答案 0 :(得分:0)
看起来项目配置中的设备密码错误。
要部署到设备,您必须在project.properties
文件中配置密码。
qnx.device.password=1234
其中“1234”是您的设备密码。
当您部署到设备然后更改为其他设备而忘记更改密码时,通常会发生这种情况。
更换设备时要检查的其他事项包括:
qnx.device.ip
qnx.device.pin
(仅当您使用调试令牌时)。