Muhammad Ali
Muhammad Ali

Reputation: 369

is android:versionCode="1" and android:versionCode="10100" same in the android?

I have just came across a question about versionCode in Android I basically using ionic framework to build android app so in the config file which is responsible for creating AndroidManifest.XML

my older version had VersionName="0.0.1" and VersionCode="1" and in order to upload apk to playstore again I have to increase versionCode

so instead I changed it to VersionName="1.1.0" and removed VersionCode attribute and after build it has generated versionCode="10100" in AndroidManifest.xml file

so "1" and "10100" are same or should I set manually versionCode="2" to make it work?

Thanks

Upvotes: 0

Views: 295

Answers (1)

Naitik Soni
Naitik Soni

Reputation: 770

Version code is integer value. It should be greater than previous version code. That's it.

You should add version code manually in gradle file....with proper incremental integer. So in your case I think 2 is good option and yes 1 and 10100 is of course different. :)

Upvotes: 1

Related Questions