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
Android version and code version number change on Android Studio >= 3.6:
Two ways to achieve this:
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
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
The easiest way to set the version in Android Studio:
1. Press SHIFT+CTRL+ALT+S (or File -> Project Structure -> app)
Android Studio < 3.4:
Android Studio >= 3.4:
Open your build.gradle file and make sure you have versionCode
and versionName
inside defaultConfig
element. If not, add them. Refer to this link for more details.
I didn't get the other answers to work in Android Studio 1.4. But this worked:
click on your app name to the left below the main ribbon.
It will show a list of files.
Open AndroidManifest.xml
and change the version code and version number there.