How do I export an .apk android in Android Studio?

4

Whenever I export the application google gives this message:

EventhoughI'mchangingAndroidManifest.xml:

android:versionCode="2"
android:versionName="1.0.2"

Procedure I'm doing:

I'm exporting right?

    
asked by anonymous 05.09.2014 / 13:32

1 answer

4

Your procedure is correct, but the problem is that Gradle rewrites those attributes in AndroidManifest .

Look at gradle.build of your main module, by the following excerpt:

defaultConfig {
    applicationId "xxx.xxx.xxx.xxxxxxxxx"
    minSdkVersion 10
    targetSdkVersion 20
    versionCode 1
    versionName "1.0"
}

Change the versionCode and versionName to the desired.

    
05.09.2014 / 13:38