SHA-1 fingerprint of keystore certificate

前端 未结 30 3110
长发绾君心
长发绾君心 2020-11-21 23:36

Is the method for getting a SHA-1 fingerprint the same as the method of getting the a fingerprint? Previously, I was running this command:

30条回答
  •  無奈伤痛
    2020-11-22 00:05

    In Addition to Lokesh Tiwar's answer

    For release builds add the following in the gradle:

    android {
    
    defaultConfig{
    //Goes here
    }
    
        signingConfigs {
            release {
                storeFile file("PATH TO THE KEY_STORE FILE")
                storePassword "PASSWORD"
                keyAlias "ALIAS_NAME"
                keyPassword "KEY_PASSWORD"
            }
        }
    buildTypes {
            release {
                zipAlignEnabled true
                minifyEnabled false
                signingConfig signingConfigs.release
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    
    }
    

    Now running the signingReport as in Lokesh's Answer would show the SHA 1 and MD5 keys for the release builds as well.

提交回复
热议问题