Android Marketplace Updating
With Build, how can you update the version number of the app so that it can be submitted as a update to the marketplace? I have tried changing the config.xml, but that version number doesn't seem to be reflected anywhere in the app.
This topic is no longer open for comments or replies.
-
You can specify the version (public viewable) as an attribute of the top-level widget element, in your config.xml file.
To manage updates, Android uses a property called versionCode (as distinct from version name, the public-facing one). PhoneGap Build automatically increments the version code of your application on each build. If you need to override this, you can add a "versionCode" attribute to your widget element, like so:
<widget id="com.myapp.xox" version="1.0.0" versionCode="15">
...
</widget>-
Bruce Gordon July 25, 2011 21:04Still didn't work.EditDeleteRemove
-
-
-
-
Still getting this message when trying to upload the new APK.
The new apk's versionCode(1) already exists.
Here is a copy of my config.xml.
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.appsmade4u.cpsashland"
version = "2.1"
versionCode = "21">
<name>CPS Ashland</name>
<description>
CPS Ashland customer connection.
</description>
<author href="http://www.appsmade4u.com" email="bruce@appsmade4u.com">
Bruce Gordon / AppsMade4U
</author>
<preference name="orientation" value="portrait" />
<feature>http://api.phonegap.com/1.0/file</feature>
<feature>http://api.phonegap.com/1.0/geolocation</feature>
<feature>http://api.phonegap.com/1.0/network</feature>
<icon src="icon/icon.png" width="72" height="72" />
<icon src="icon/icon57.png" width="57" height="57" />
<icon src="icon/icon72.png" width="72" height="72" />
<icon src="icon/icon114.png" width="114" height="114" />
<gap:splash src="loading.png" width="320" height="480" />
</widget> -
-
What's the id of your app on PhoneGap Build? I can take a look at the apk and try to figure out what's happening.
-
-
The app id is 18625.
I tried it again last night, and it came up with a different version code of '151' (same as the build number) and worked.
Thanks for your response. Love your guys service.
I will be trying to add the app to the apple store and see how that goes.
Thanks again.
Bruce -
-
I have the same issue can someone help me by changing the versioncode number to 150..
My app ID is 27776 -
-
Hello.
Same issue for me : the versionCode field in my config.xml file seems to not be taken in account by the build ( but the 'version' field "0.0.1" is ok) :
I wrote versionCode="1" in the config file, built it on 'phonegap build' and post the apk on the Android Market, and there the versionCode is 4.
I tried it several time, and the versionCode changes randomly.
Could tell me how to manage this pb ?
Regards.
Matthieu
Extract of my config.xml file :
...
id = "com.xxxx.yyyy"
version = "0.0.1"
versionCode = "1"
... -
-
It looks like there was a bug in the versionCode - the versionCode specified in the config was being trumped by the build count (the default). This meant it was always the build count.
I've fixed that now - if you specify a versionCode in your config.xml, it will be set correctly. -
-
PERFECT !
I tried version="0.0.1" versionCode="1" and a subsequent build with version="0.0.2" versionCode="2", and both versionCode were weel configurated by the build. The second app updated the first one thanks to the versoinCode.
Many thanks for this very quik fix.
Best Regards. -
-
I'm getting the same problem, I've updated the code in my config file to this and it's still giving me an error, here's an extract of my config file:
-
-
I keep getting this error when I try to upload an update to my app in the Android market.
new apk's versionCode (1) in AndroidManifest.xml must be higher than the old apk's versionCod
I have tried changing the version in the config file, but it does not seem to change it when you use Build.
Sample config:
<?xml version="1.0" encoding="UTF-8"?>
I also tried adding a version number in the Build edit page. No luck
This reply was created from a merged topic originally titled
AndroidManifest.xml must be higher than the old apk's versionCode (1). -
-
Brief Buddy, I can't see your config.xml contents. Please use the code tag to enter code in Get Satisfaction - hit the "some HTML allowed" link for more details.
-
-
Here is the code, I've tried tweaking around with the header numbers...
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.craigbarber.briefbuddy"
version = "1.2"
versionCode = "200"> -
-
What's the id of your application - when you navigate to the app's page, what's the number in the URL bar?
-
-
hello I am having the same problem my app code won't update my app id is 47210
-
-
Hi Zubair,
You have the following tag in your config.xml file:
<feature id="phonegap" required="true" version="1.0.0" />
This feature lacks a name attribute, which is required for a valid W3C config.xml document - see here:
http://www.w3.org/TR/widgets/#the-fea...
Because of this, we could not parse your config.xml file correctly and extract the versionCode. -
-
Ok, I think I solved my problem thanks to the above comment as a pointer.
I added required="false" to my features in the config xml.
Not having this seems to have been tripping it up. -
-
This is bug that a number of people have brought up - please follow the progress here:
http://community.phonegap.com/nitobi/... -
Loading Profile...


Twitter,
Facebook, or email.




