Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different version code for APK, android app with phonegap build

When I trying to upload my app on google play, this errormessage is displayed:

You need to use a different version code for your APK because you already have one with version code 1.

Im downloading my APK from my phonegap build.

My question is:

In what file can I change the version number?

I have tried to change in androidmanifest.xml, Version code and Version name

Thanks!

like image 981
raholsn Avatar asked Oct 22 '13 12:10

raholsn


Video Answer


1 Answers

You should specify the version code attribute in the "config.xml", Note that version code attribute should be like that android-versionCode="2" , as shown in below example:

<?xml version='1.0' encoding='utf-8'?>
<widget id="ca.anything.anything.any"
    android-versionCode="2"
    version="1.0.3"
    xmlns="http://www.w3.org/ns/widgets"
    xmlns:cdv="http://cordova.apache.org/ns/1.0"
    xmlns:rim="http://www.blackberry.com/ns/widgets">
    <name>Application Name</name>
....
</widget>
like image 68
Tarek El-Mallah Avatar answered Sep 19 '22 11:09

Tarek El-Mallah