在构建blackberry10 cordova / phonegap项目时,很多文件都丢失了

时间:2013-08-28 20:21:55

标签: node.js blackberry cordova blackberry-10

构建blackberry10 cordova / phonegap项目时,构建中不包含许多文件。不包括许多启动画面图像和文件“DEFAULT_BAR_NAME.bar”。

但是,如果在另一台设备(台式PC)上重复相同的过程,则会包含所有文件。据我所知,两者都有相同的软件设置。

C:\Users\USER\hello>cordova emulate blackberry10
[Error: An error occurred while emulating/deploying the blackberry10 project.
[BUILD]   Populating application source
[BUILD]   Parsing config.xml
[BUILD]   Generating output files
[WARN]    Failed to find debug token. If you have an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command.
[ERROR]   Error: Attribute image: file cannot be found in the list of packaged files: res/screen/blackberry/splash-1280x768.png
[ERROR]   Native Packager exception occurred
[WARN]    Failed to find debug token. If you have an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute the 'run' command.
[ERROR]   Error: Attribute image: file cannot be found in the list of packaged files: res/screen/blackberry/splash-1280x768.png
[ERROR]   Native Packager exception occurred
[ERROR]   Error: File does not exist or not a file or cannot read: C:\Users\USER\hello\PLATFO~1\BLACKB~1\build\simulator\DEFAULT_BAR_NAME.bar

如果有更多信息有用,请询问,谢谢!

1 个答案:

答案 0 :(得分:1)

我看到这个消息有点晚了。 但我有解决这个问题的方法。

  1. 浏览到您的phonegap项目的根目录(包含这些文件夹的项目合并,平台,www和插件)
  2. 打开www文件夹
  3. 打开config.xml
  4. 现在仔细删除那些未使用cordova platform add命令添加的平台的splash和icon的所有声明。例如,如果您只为黑莓创建了一个项目,请删除ios,android,webos,bada,windows-phone
  5. 的所有图标和启动声明。
  6. 现在运行cordova build。应该构建您的黑莓应用程序,没有任何错误。
  7. 我能够在phonegap 3.3

    中编译我的黑莓10应用程序

    如果您遇到有关p12文件的任何错误,则需要遵循黑莓签名指南。或者如果您有任何疑问,请邮寄给我 hansolo.amey@gmail.com

相关问题