当前位置 : 主页 > 网页制作 > Nodejs >

node.js – 在构建blackberry10 cordova / phonegap项目时,缺少许多文件

来源:互联网 收集:自由互联 发布时间:2021-06-16
在构建blackberry10 cordova / phonegap项目时,构建中不包含许多文件.不包括许多启动画面图像和文件“DEFAULT_BAR_NAME.bar”. 但是,如果在另一台设备(台式PC)上重复相同的过程,则会包含所有文件
在构建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

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

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

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

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

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

网友评论