Google play - How to change android version and code version number in Android Studio

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

How to change android version and code version number Android Studio? I want to change apk file(app) on Google Play and i need to change android version and code version number. I tried with this in AndroidManifest.xml file in Android Studio:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bestsoftcorporation.circle.app"
android:versionCode="101"
android:versionName="2.0">

But it wont work. When i tried to publish it on Google Play it display that i must to change android version name and code. Pls help.

Answers

Go in the build.gradle and set the version code and name inside the defaultConfig element

defaultConfig {
    minSdkVersion 9
    targetSdkVersion 19
    versionCode 1
    versionName "1.0"
}

<img src="https://i.stack.imgur.com/3bFFB.png" alt="screenshot">

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/22274657/how-to-change-android-version-and-code-version-number-in-android-studio

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils