How to change Android version and code version number?

后端 未结 10 815
悲哀的现实
悲哀的现实 2020-12-07 08:56

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 nu

10条回答
  •  悲哀的现实
    2020-12-07 09:04

    You can define your versionName and versionCode in your module's build.gradle file like this :

    android {
        compileSdkVersion 19
        buildToolsVersion "19.0.1"
    
        defaultConfig {
            minSdkVersion 8
            targetSdkVersion 19
            versionCode 1
            versionName "1.0"
        }
        .... //Other Configuration
    }
    

提交回复
热议问题