Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® World™ Development

Reply
New Contributor
craiglurey
Posts: 4
Registered: ‎01-28-2014
My Device: Z10

The package version in your .bar manifest file for New Bundle must be greater than the previous version

[ Edited ]

When submitting an update to our app, I get this error:

"The package version in your .bar manifest file for New Bundle 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 7.1. Correct your .bar manifest file and try again to continue."

I have modified the .bar file manifest every way I can think of and it still gets rejected.  I've tried 7.2.0.0, 8.0.0.0, 8.8.8.8, nothing works.  

 

I have pasted the MANIFEST.MF file below extracted from the .bar file which was rejected:

-------------------------------------------------------------------------

 

Archive-Manifest-Version: 1.1

Archive-Created-By: blackberry-apkpackager version 2.0.0

 

Package-Author: Keeper Security Inc

Package-Author-Id: gYAAgCnINEC08uwpC82f41Fsvak

Package-Name: com.callpod.android_apps.keeper

Package-Id: gYABgGXcDtCMyywPvbUx0XwG_78

Package-Version: 8.8.8.8

Package-Version-Id: gYACgLdm4EeXveSY6Hm-8JofExk

Package-Type: application

Package-Architecture: armle-v7

Package-Author-Certificate-Hash: xxxxxxx

 

Application-Name: Keeper

Application-Id: gYADgFOlcKU4DmdbzeVs6-d2WQo

Application-Version: 8.8.8.8

Application-Version-Id: gYAEgH6QF6gOPv8AvKVGkBKXwbA

Application-Requires-System: Tablet OS/2.0.0.7109

 

Entry-Point-Name: Keeper

Entry-Point-Icon: android/res/drawable-mdpi/app_icon.png

Entry-Point-Type: Qnx/Android

Entry-Point: android://com.callpod.android_apps.keeper?activity-name=com.callpod.android_apps.keeper.ResultsActivity

Entry-Point-User-Actions: access_internet,access_shared,access_pimdomain_contacts,play_audio,post_notification

 

Archive-Asset-Name: android/GoKeeperV2014.01.24.apk

Archive-Asset-SHA-512-Digest: xxxxxx

 

Archive-Asset-Name: android/res/drawable-mdpi/app_icon.png

Archive-Asset-SHA-512-Digest: xxxxxxx

 

Please use plain text.
New Contributor
craiglurey
Posts: 4
Registered: ‎01-28-2014
My Device: Z10

Re: The package version in your .bar manifest file for New Bundle must be greater than the previous version

I solved this after doing the following:

 

- Looked at the originally posted .bar file to app world, and extracted the Manifest.MF file to see the version number.  Found out it was formatted crazy like : 

2013.10.10.1

 

- Ran basically the below command line script to fix the .bar file manifest to submit to App World:

 

# Creates unsigned .bar file

rm -fR tmp/

./blackberry-apkpackager MyApp.apk

 

##  hack to fix the version number

mkdir tmp

mv MyApp.bar tmp/MyApp.zip

cd tmp/

unzip MyApp.zip

rm MyApp.zip

vi META-INF/MANIFEST.MF

#######

# IMPORTANT:

# replace Application version and Package version with:

# 2014.1.24.1 (or greater than the previous version)

# NOTE THAT I REMOVED THE "0" from 2014.01.24.1 to 2014.1.24.1

#######

cp META-INF/MANIFEST.MF ../MyApp.MF

cd ..

rm -fR tmp/

./blackberry-apkpackager MyApp.apk -m

 

# Sign App

./batchbar-signer MyApp.bar mykey.p12 <<STOREPASS>> <<CSKPASS>>

 

 

Please use plain text.
New Member
kumarv75
Posts: 1
Registered: ‎09-18-2014
My Device: BB-BB10

Re: The package version in your .bar manifest file for New Bundle must be greater than the previous version

Hi Guys

I also had the same problem but I fixed it by adding this line in my Android Manifest file android:versionCode="30" previously I had android:versionCode="29" so upgraded it by one .And the problem got fixed for me.
Please use plain text.