Changing version code in AndroidManifest does not work

I tried updating my application in the playstore to do this, I changed my version code 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 download the application, the developer says that I still use version 1 code, and the German developer does not have human support, so I hope someone can help me.

+8
android android-studio
source share
3 answers

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

+18
source share

Typically, you should release the first version of your application with the versionCode parameter equal to 1, then monotonically increase the value with each version, regardless of whether the release is a major or minor version.

So, maybe the problem is because you did not set the version code in the manifest file in the first version.

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

Could you give me the full message? And what appeared on the buttons when this message appeared.

I remember that a similar message ran into me, and there might have been a continue button.

0
source share

Also, if you are running Android Studio, don't forget: Build > Generate Signed APK...

-one
source share

All Articles