允许在android studio中创建一个签名的apk [关闭]

问题描述 投票:-3回答:1
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'

defaultConfig {
    applicationId "polarmagic.atlasgames.com.polarmagic.Home"
    minSdkVersion 21
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"

    // Enabling multidex support.
    multiDexEnabled true

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

dexOptions {
    javaMaxHeapSize "4g"
}
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:27.1.1'
    // AdMob
    compile 'com.google.android.gms:play-services-ads:+'
}
java android
1个回答
0
投票

为什么不从这个窗口生成签名的APK?

您将获得一个弹出对话框,您需要填写其信息以获取密钥库

enter image description here

如果您没有密钥库,可以从此处创建一个新密钥库。

您将需要填写一些数据并完成。

enter image description here

来自docs here

© www.soinside.com 2019 - 2024. All rights reserved.