新的黑莓应用程序世界的错误"巴清单文件包版本必须大于..." [英] new blackberry app world error "bar manifest file package version must be greater than ..."

查看:199
本文介绍了新的黑莓应用程序世界的错误"巴清单文件包版本必须大于..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始尝试上传一个剧本的应用程序更新黑莓世界,当得到一个奇怪的错误消息。我觉得他们安装Eclipse插件的1.6.1版本后,这个问题开始。

I've started getting a weird error message when trying to upload a playbook app update to BlackBerry world. I think this problem started after installing version 1.6.1 of their eclipse plugin.

该错误消息:

在你的.bar清单文件软件包版本为signals_playbook必须大于previous版本,但比任何下一个发布版本添加到供应商门户下部。你的.bar清单文件包的版本必须是大于3.0。纠正你的.bar清单文件,并再次尝试继续。

"The package version in your .bar manifest file for signals_playbook must be greater than the previous version, but lower than any the next release version added to the vendor portal. . Your .bar manifest file package version must be greater than 3.0. Correct your .bar manifest file and try again to continue."

我的Andr​​oidManifest.xml中包括:

My AndroidManifest.xml contains:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ca.rcp.mobile.cror.signals"
android:versionCode="7"
android:versionName="3.1" >

包含在BAR中的清单文件显示了这个信息:

The Manifest file contained within the BAR shows this info:

Archive-Manifest-Version: 1.1
Archive-Created-By: Apk2Bar version 1.6.1

Package-Author: xxxxxxxx
Package-Author-Id: some hash xxxxxxxxx
Package-Name: xxxxx.cror.signals
Package-Id: some hash xxxxxxxxx
Package-Version: 1.0.7.1
Package-Version-Id: some hash xxxxxxxx
Package-Type: application
Package-Architecture: armle-v7
Package-Author-Certificate-Hash: some hash xxxxx

Application-Name: Railway Signals
Application-Id: some hash xxxxxxxx
Application-Version: 1.0.7.1
Application-Version-Id: some hash xxxxxxxxxxx
Application-Requires-System: Tablet OS/2.0.0.7109

我的系统:

Windows 7的64位使用Eclipse 3.7.2与最新的ADT和更新。

Windows 7 x64 using Eclipse 3.7.2 with latest ADT and updates.

我明白为什么黑莓世界抱怨,认为版本号为1.0.7.1。我如何得到它显示3.1.0.0 ??

I can see why BlackBerry world is complaining, it thinks the version number is 1.0.7.1. How do I get it to show 3.1.0.0??

我想编辑包含在酒吧内的清单文件,保存它,并重新提交。但是,这并不能正常工作(不认为这会但值得一试)。

I tried editing the manifest file contained within the bar, saving it and resubmitting. But that didn't work (didn't think it would but was worth a try).

有谁知道哪里是1.0.7.1来自何处? 我可以重写它?

Does anyone know where is the 1.0.7.1 coming from? Can I override it?

谢谢 罗布

推荐答案

我们突然开始有同样的问题与我们的基础之上。显然,事情改变了黑莓构建工具。尝试将应用程序的安卓VERSIONNAME 属性为4部分组成的值(如 3.1.0.1 )。黑莓手机一直使用这种格式(major.minor.micro.build)的原生应用。看来,除非你的Andr​​oid清单具有相同的格式,黑莓构建工具无法解析VERSIONNAME属性,并使用回退。从我可以告诉,退一步的是使用 Android的价值:版本code 作为微版本中默认的应用程序版本code;这是它设置的.bar文件清单,以

We suddenly started having the same problem with our builds. Evidently something changed in the BlackBerry build tools. Try setting the application's android:versionName attribute to a 4-part value (such as 3.1.0.1). BlackBerry has always used this format (major.minor.micro.build) for native apps. It seems that unless your Android manifest has the same format, the BlackBerry build tools fail to parse the versionName attribute and use a fall-back. From what I can tell, the fall-back is to use the value of android:versionCode as the micro version in a default application version code; that is it sets the app version in the .bar file manifest to

1.0.<android:versionCode value>.1

(我当然不希望是,必须捍卫实施这种行为的工程师。)

(I sure wouldn't want to be the engineer that had to defend implementing this behavior.)

这是另一种方法是创建具有您所需的应用程序版本自定义的清单文件。创建一个名为 MANIFEST.MF 在同一个目录的Andr​​oidManifest.xml 的文件。然后添加你想要的特定的.bar清单条目。例如,它可能是:

An alternative approach is to create a custom manifest file that has the app version you want. Create a file named MANIFEST.MF in the same directory as AndroidManifest.xml. Then add the specific .bar manifest entries you want. For instance, it might be:

Archive-Manifest-Version: 1.1

Package-Version: 3.1.0.0
Application-Version: 3.1.0.0

然后打开Eclipse中的项目属性,导航到黑莓手机,并为自定义BAR清单下拉列表中,选择添加自定义值(合并)。

Then open the project properties in Eclipse, navigate to BlackBerry, and for the "Custom BAR Manifest" drop-down, select "Add custom values (merge)".

这篇关于新的黑莓应用程序世界的错误&QUOT;巴清单文件包版本必须大于...&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆