Cannot get SHA1 certificate fingerprint Android Studio
This question already has an answer here:
The easiest way to do this (for debugging) is to run the app in debug connected to Android Studio. Check the messages (logcat) in Android studio and you'll see a message, in red "Unable to connect Google Maps: Authorisation Failure" and then underneath that will be the exact string you need to copy into the Google API Console (SHA1 + app name). Copy, paste, wait a bit for Google to spread to all the servers and then try again.
Otherwise, you just need to run
keytool -list -v -keystore mystore.keystore
(No need for the other parameters) and it's the entry under SHA1 that you need.
链接地址: http://www.djcxy.com/p/81606.html