当build设blackberry10科多瓦/ phonegap项目许多文件丢失

在构buildblackberry10 cordova / phonegap项目时,许多文件不包含在构build中。 不包括一些闪屏图像和“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 

如果有更多的信息可以帮助,那么请问,谢谢!

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

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

我能够在phonegap 3.3中编译我的blackberry 10应用程序

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