896+ Capstone Project is Available: Whatsapp: +91-7011258995, Email: sharecodepoint@gmail.com

How to change Android version and code version number?

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

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

Solution 2:

The best way to set the version in Android Studio:

1. Press SHIFT+CTRL+ALT+S or File -> Project Structure -> app

Android Studio < 3.4:
  • Choose tab 'Flavors'
  • The last two fields are 'Version Code' and 'Version Name'

Android Studio >= 3.4:
  • Choose 'Modules' in the left panel.
  • Choose the 'app' in the middle panel.
  • Choose 'Default Config' tab in the right panel.
  • Scroll down to see and edit 'Version Code' and 'Version Name' fields.

Sharecodepoint

Sharecodepoint is the junction where every essential thing is shared for college students in the well-defined packets of codes. We are focused on providing you the best material package like Question papers, MCQ'S, and one NIGHT STUDY MATERIAL. facebook twitter youtube instagram

Post a Comment

Previous Post Next Post

Contact Form