Reference: https://developers.google.com/maps/documentation/android/start? Hl = ZH-CN # getting_the_google_maps_android_api_v2
The old version of Google map API key does not seem to have been applied for, and the application address given in the previous popular online tutorials is different from the page given in the tutorial. The following describes the APIs of Google Maps Android API V2.
Key application method, hope you can see this article.
Apply for Google
For the API key of maps Android API V2, you must first obtain the sha1 authentication fingerprint. The method is as follows:
1. Find keytool and debug. the Directory of the two keystore folders (generally, keytool is in the bin folder of your JDK installation directory; debug. the keystore is in. \ Android directory. My keytool file is in E: \ Java \ JDK \ bin \ keytool, And the Debug. keystore file is in c: \ User \ dpuz \. Android \ Debug. keystore. The directory where Debug. keystore is located can also be viewed by opening eclipse> WINDOW> preference> Android> bulid:
2. Find the above two files, open the console (CMD), run the CD command to enter the directory where the keytool file is located, and then enter keytool
-V-list-keystore c: \ Users \ <your user name> \. Android \ Debug. keystore. After you press enter, he will ask you to enter the password, which is Android. In this way, you will get the sha1 fingerprint,
After obtaining the sha1 authentication fingerprint, open the link https://code.google.com/apis/lele/, and click here. Of course, you must have a Google account number before, and it doesn't matter if you have one,
Enter: obtaining an API Project
Then go to the Goog APIs Console
If you do not have an account, apply for a Google app account first.
When services is enabled, the status is off:
Then you will go to a Google agreement terms page, without a doubt, accept.
Click the API on the left.
Access, enter such a page, find create Android new key below.
Enter