How to change Android version and code version number?

后端 未结 10 793
悲哀的现实
悲哀的现实 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:17

    Android version and code version number change on Android Studio >= 3.6:

    Two ways to achieve this:

    1. Direct on the Android project by Open Flutter project and modify the file

      local.properties

    change the following values. Example:

    flutter.buildMode=release
    flutter.versionName=3.0.0
    flutter.sdk=C\:\\src\\flutter
    sdk.dir=C\:\\Users\\vgonza\\AppData\\Local\\Android\\sdk
    flutter.versionCode=30
    
    1. Open pubspec.yaml

    Change the

    version: 2.0.0+8
    

    Meaning: The version name is 2.0.0 The version code is 8

    See example by Suragch in:

    How to set build and version number of Flutter app

提交回复
热议问题