How to use V1 (Jar signature) or V2 (Full APK signature) from build.gradle file

后端 未结 1 1340
粉色の甜心
粉色の甜心 2021-01-15 04:57

I have this in my gradle file:

android {
    signingConfigs {
        mySigningConfig {
            keyAlias \'theAlias\'
            keyPassword \'thePasswo         


        
相关标签:
1条回答
  • 2021-01-15 05:16

    Found it! I have adjusted my gradle file like so:

    signingConfigs {
        mySigningConfig {
            keyAlias 'theAlias'
            keyPassword 'thePassword'
            storeFile file('theKeystore.jks')
            storePassword 'thePassword'
            v1SigningEnabled true
            v2SigningEnabled true
        }
    }
    

    Reference: https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.SigningConfig.html

    0 讨论(0)
提交回复
热议问题