1.获取debug版本SHA1
1.运行你的demo,点击AS展开右侧Gradle功能区;
2.点击项目名,点击Tasks,点击android,用力双击signingReport,在下方Run区域查看自己想要的东西
2.获取发布版SHA1
通过Android Studio编译器获取SHA1
第一步、打开Android Studio的Terminal工具
第二步、输入命令:keytool -v -list -keystore keystore文件路径
第三步、输入Keystore密码
cd D:\Android Studio 4.1.1\jre\bin
keytool -list -v -alias key -keystore D:\Android\work\DiaryMVP\Diary\app\diary.jks
keytool -list -v -alias key -keystore D:\DiaryMVP\Diary\app\diary.jks
keytool -list -v -alias innoshine -keystore D:\word\FaceDetection\app\android.keystore
keytool -list -v -alias innoshine -keystore D:\word\FaceSDKSample_Android\app\android.keystore
MD5: 08:B2:34:DA:CB:F2:11:3A:BE:B6:FF:CF:A5:EA:98:5F
SHA1: DB:79:CB:85:D2:5D:E3:30:15:EF:C9:DA:4F:08:BA:C7:84:E7:0B:CF
SHA256: 55:1A:19:4A:4A:6D:4E:D6:79:0C:F1:40:F6:19:A3:BD:0F:39:38:D3:48:A7:B3:F5:80:D2:7C:5E:56:7E:D6:E2