Home » Android » android – Changing version code in AndroidManifest not Working

android – Changing version code in AndroidManifest not Working

Posted by: admin June 15, 2020 Leave a comment

Questions:

I tried to update my app in the playstore, to do that I changed my versioncode from 1 to 2:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.xamaxon.congstardatenverbrauch"
android:versionCode="2"
android:versionName="1.0.1">

When I’m uploading the app the developerconsole is saying, that I still use the version code 1 and there is no human support for German developer, so I hope someone is able to help me.

How to&Answers:

The version code and name get overridden by values in your build.gradle file. So edit your build.gradle and rebuild.

Answer:

Typically, you would release the first version of your application with versionCode set to 1, then monotonically increase the value with each release, regardless whether the release constitutes a major or minor release.

So, maybe the problem because you didn’t set version code in manifest file in the first release.

http://developer.android.com/tools/publishing/versioning.html

Could you please give me the full message google play have said? And what to buttons appeard when that message appeared.

I remember that a similar message faced me, and maybe there was a continue button.

Answer:

Also, if you’re in Android Studio, don’t forget:
Build > Generate Signed APK...