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

Asked

Viewed 4,823 times

4

Every time I export the google app from that message:

Erro google.

Even though I changed Androidmanifest.xml:

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

Procedure I’m doing:

Procedimento.

I’m exporting right?

1 answer

4


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

Search the gradle.build of its main module, by the following:

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

Change the versionCode and the versionName to the desired.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.