我正在尝试启动BlackBerry10 phonegap应用程序但遇到以下错误:
C:\sites\Safe\platforms\blackberry10\cordova>run
[BUILD] Populating application source
[BUILD] Parsing config.xml
[BUILD] Generating output files[WARN] Failed to find debug token. If you ha
ve an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugt
oken.bar. To generate a new debug token, execute the 'run' command.
[INFO] Info: Package created: C:\sites\Safe\PLATFO~1\BLACKB~1\build\simulator
\DEFAULT_BAR_NAME.bar
[WARN] Failed to find debug token. If you have an existing debug token, pleas
e copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug
token, execute the 'run' command.
[INFO] Info: Package created: C:\sites\Safe\PLATFO~1\BLACKB~1\build\device\DE
FAULT_BAR_NAME.bar
[BUILD] BAR packaging complete
[INFO] Info: Sending request: Install and Launch
[INFO] Info: Action: Install and Launch
[INFO] Info: File size: 1704050
[INFO] Info: Installing default.app.id.testDev_ault_app_id417e7455...Info: Pr
ocessing 1704050 bytes
[INFO] actual_dname::actual_id::
[INFO] actual_version::result::failure 881 application author does not match
debug token author
我的设备有一个有效的调试令牌,作者在config.xml中匹配作者。我错过了什么?
答案 0 :(得分:2)
你的问题提供了我的答案,因为你的警告比我得到的警告更详细。当我将调试令牌从其通常位置复制到:
时c:\ Users \\ AppData \ local \ Research In Motion \ 169.254.0.1debugtoken.bar
到
C:\ Users \用户.cordova \ blackberry10debugtoken.bar
这解决了警告和错误以及部署到我的设备的应用程序。