user1061793
user1061793

Reputation: 1077

How to update my application on android market without changing version code

I have uploaded my app on android market.I did some changes,and want to update it again so I am getting the error.

"The new apk's versionCode (1) already exists"

So what should I do.Plese help me

Thank you

Upvotes: 1

Views: 5480

Answers (7)

Seymur Mammadli
Seymur Mammadli

Reputation: 1814

For Android Studio you must also change build.gradle file which has defaultConfig method contains versionCode

Upvotes: 0

Neil MCCABE
Neil MCCABE

Reputation: 67

Just as an addition to Dr Nik's answer (sorry, my rep isnt high enough to comment), remember to save the amended manifest before exporting the signed apk, otherwise the changes don't go through and you get the same error. Exporting doesn't autosave. Had me frustrated for 20 mins until I worked it out.

Upvotes: 0

code post
code post

Reputation: 81

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="your.package.name" android:versionCode="2" android:versionName="2.0" >

you must have to change your venter code hereersion code

Upvotes: 0

ademar111190
ademar111190

Reputation: 14505

you get your manifest and increment the version code, example:

before:

 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
 package="your.package.name"
 android:versionCode="1"
 android:versionName="version name" >

after:

 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
 package="your.package.name"
 android:versionCode="2"
 android:versionName="new version name or not ^^" >

good luck.

Upvotes: 2

Nikunj Patel
Nikunj Patel

Reputation: 22066

it is not possible as per my knowledge that without change your app version code, update app to market you must need to update it.

Go to manifestfile >> and set version code new

like this ::

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your.package.name"
android:versionCode="2"
android:versionName="2.0" >

Upvotes: 4

Graham Smith
Graham Smith

Reputation: 25757

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="your.package.name"
    android:versionCode="1"
    android:versionName="1.0" >

Change the version code (most likely incrementing it) in your manifest.xml.

Upvotes: 0

jeet
jeet

Reputation: 29199

You can not upload new installer same application package with same version code.

Upvotes: 0

Related Questions