When wanting to get the SHA-1. of maps the terminal seems to embase itself without typing any code and I do not know if it's because I have windows 7 and the android studio is version 2.2.1
If you want to get the SHA1 use the command console and do the following
C: \ Program Files \ Java \ jdk1.7.0_25 \ bin >
and then write to the console and enter.
keytool -list -v -keystore "c:\users\tu_nombre_de_usuario\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
when press enter the sha1 must appear