How to change the version of the application in android studio? [duplicate]

2

I'm about to launch an application and I know that at some point I will make updates, but I did not find in the tool the place to change the version of the app, since it is different from Eclipse ADT, which was in the androidmanifest itself. Anyone know how ??

    
asked by anonymous 05.03.2015 / 21:21

1 answer

3

In the android studio inside the build.gradle file you will find a code like neither below:

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

where versionCode comes is usually the code used internally for application to make a comparison. If you have a database, you can use this code to update the tables if it changes. the versionName and the code visible to the user.

If you do not have this block, just copy and paste the

    
06.03.2015 / 00:02