1

我正在尝试启动 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 中的作者相匹配。我错过了什么?

4

1 回答 1

2

你的问题提供了我的答案,因为你的警告比我得到的更详细。当我从通常的位置复制我的调试令牌时:

c:\Users\\AppData\local\Research In Motion\169.254.0.1debugtoken.bar

c:\Users\.cordova\blackberry10debugtoken.bar

这修复了警告和错误以及部署到我的设备的应用程序。

于 2013-09-25T17:14:22.840 回答