android app签名证书指纹,如何在Android上获取OAuth 2.0的签名证书指纹(SHA1)?

If you are using Android Studio. You can get fastly the SHA1 certificate fingerprint (debug,release... all Build Types!!) through Gradle Tasks:

signingReport

SHA1 is shown in Messages Logs

Android Plugin (configured in the gradle app) creates a debug mode for default.

com.android.application

File route to keystore:

HOME/.android/debug.keystore

I recommend attach debug.keystore to build.gradle. To do this put a file debug.keystore to a app folder and then Add SigningConfigs in gradle app:

apply plugin: 'com.android.application'

android {

................

signingConfigs {

debug {

storeFile file("../app/debug.keystore")

storePassword "android"

keyAlias "androiddebugkey"

keyPassword "android"

}

release {

storeFile file("../app/debug.keystore")

storePassword "android"

keyAlias "androiddebugkey"

keyPassword "android"

}

}

........

}

Extra: If you want creates for release, put a file release.keystore to a app folder. (This example uses the same debug.keystore)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值