The "Input Error" error was incorrect when receiving the API key for the Google Maps API v2

I am making an example application for a Google map. I use the same code example that is listed in /extras/google/google_play_services/samples/maps in the android directory.

I am trying to create an API key for use in an example application. I refer to Create and get an API key for the Google API Android API v2 and Google Maps Android API v2 docs , and I get an error on the Google console page.

After entering MD5 and the package name (as CF:7C:E3:40:8E:SA:2B:31:E8:E7:ED:31:7A:8A:D7:46;com.test.myapp ) I get "Your input is invalid . " I do all the steps (up to this error) to the right (as my given URLs said), but I don’t know why this error occurs.

Please help me resolve this error.

+4
source share
3 answers

You put the MD5 fingerprint of your keystore, but SHA1 is required for this api.

Refer to this image.

enter image description here

+14
source

First go to the bin bin bin form, enter the following command

 keytool.exe -v -list -keystore "C:\Users\NewPC\.android\debug.keystore" -storepass android -keypass android 

you will get a detailed output of all keys, including fingerprint sha1, and then follow the steps on google api website.
sha1 looks like this

 B9:BC:1A:87:5A:9E:29:8A:DE:BD:41:19:63:A1:FD:60:04:EA:83:4A 
+2
source

Now Google has stopped generating the API key, and you can use the new google api version V3, and with your account you can enable all the services you want.

-2
source

All Articles