Reputation: 1077
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
Reputation: 1814
For Android Studio you must also change build.gradle file which has defaultConfig method contains versionCode
Upvotes: 0
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
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 here
ersion code
Upvotes: 0
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
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
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
Reputation: 29199
You can not upload new installer same application package with same version code.
Upvotes: 0