Android 如何获取 SHA1 值
有三种方式:https://lbs.amap.com/faq/android/map-sdk/create-project/43112
使用 keytool(jdk自带工具)获取SHA1
1.安装jdk
https://www.oracle.com/java/technologies/javase-jdk16-downloads.html
2.设置环境变量
官网教程,https://docs.oracle.com/en/java/javase/16/install/installation-jdk-microsoft-windows-platforms.html#GUID-C11500A9-252C-46FE-BB17-FC5A9528EAEB
C:\Program Files\Java\jdk-16\bin
3.以管理员身份运行cmd,否则会出现权限不足等情况
3.1设置
命令:keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -validity 10000
3.2获取sha1