-1

我想通过 Build > Generate Signed APK 为我的应用程序生成一个 singed APK 在这之后我得到了 3 个不同的 APK 一个是app-armeabi-v7a-release.apk另一个是app-universal-release.apk最后一个是app -x86-release.apk。各有什么区别!我应该将什么版本上传到 Google Play 商店!我正在使用 Ubuntu 16.04 和 Android Studio 3.0.1。这是我的摇篮:

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion '26.0.2'
defaultConfig {
    applicationId "my.app.package.name"
    minSdkVersion 21
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

splits {
    abi {
        enable true
        reset()
        include 'x86', 'armeabi-v7a'
        universalApk true
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.4.0' //25.3.1
compile 'com.android.support:design:25.4.0' //25.3.1
testCompile 'junit:junit:4.12'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-auth:11.8.0'
compile 'com.android.support:support-v4:25.4.0' //25.3.1
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.firebase:firebase-database:11.8.0'
compile 'com.theartofdev.edmodo:android-image-cropper:2.4.+'
compile 'com.google.firebase:firebase-storage:11.8.0'
compile 'com.firebaseui:firebase-ui-database:1.2.0'
compile 'id.zelory:compressor:2.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.google.firebase:firebase-messaging:11.8.0'  //10.2.0
compile 'com.github.hani-momanii:SuperNova-Emoji:1.1'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.github.adrielcafe:AndroidAudioRecorder:0.3.0'
compile 'com.github.adrielcafe:AndroidAudioConverter:0.0.8'
compile 'com.github.halysongoncalves:pugnotification:1.8.1'
}

apply plugin: 'com.google.gms.google-services'
4

1 回答 1

0

首先你必须阅读Generate signed apk android studio

永远面向市场 release {....

于 2018-01-17T20:03:35.053 回答