Discover google maps api key not working, include the articles, news, trends, analysis and practical advice about google maps api key not working on alibabacloud.com
Run cmd as an administrator, and then enter the following three lines (because it is longer, preferably a copy, because after pasting the first line for a reason, I entered it, and the result was unsuccessful for the first time, possibly an incorrect input.) ):" AIZASYAUOSNO_8K-3D4-FOP-CFOPA_NQAKOVCLW " "6307505647-6knmr84r2pj2leudg3pp1j0h1licd6b9.apps.googleusercontent.com " "rbewhxtlgu8oliueefpsel9c"These three lines are: API
, two apikeys are generally required: Debug key and release key. The so-called debug key is used during program development. Because the android program requires a digital signature for use, it is too troublesome to run the program every time during development. Therefore, the system automatically uses debug during the development process. keystore signs the prog
If you want to use the Google Maps API you must obtain a key from the Google site to be able to use it, but to apply for key must have a certificate, which is called MD5. The following step-by-step explanation:Step 1:If you are us
How to apply for the Google map API key)Reference:
Http://wangshifuola.blogspot.com/2010/12/androidgoogle-map-api-key.html
Step 1:Find the path of the android key store file: In eclipse, access"Windows> preferences> Android> build", You can see"Default debug store"Val
, so you can press the ENTER key to skip. It is easy to see that the MD5 key value has been generated. (Hint: My Keytool.exe tool is under D:program Filesjavajdk1.6.0_23bin, so the steps I get into and get MD5 key are
1. (First, paste the Debug.keystore document under D:program filesjavajdk1.6.0_23bin) and then win+r Open the Run input box
2. Enter cmd into the
First check C:/Documents ents and settings/Administrator /. whether debug is available under android. keystore. If no, create a project with Google APIs as the build targe under eclispe, and the file will be generated.
1. Enter:
Keytool-list-alias androiddebugkey-keystore (Debug. keystore file path)-storepass Android-keypass Android, for example:
Where:
-List: print the MD5 fingerprint of the certificate on the terminal.
-Keystore
-Storepass
skip. We can easily find that the MD5 key value has been generated. (Note: My keytool.exe tool is under D: Program FilesJavajdk1.6.0 _ 23bin, so the step for me to access and obtain the MD5 key is:
1. (First, paste the debug. keystore document to D: Program FilesJavajdk1.6.0 _ 23bin) and then open the run input box in WIN + R.
2. Enter cmd to enter the Console
3. d:
4. cd D: Program FilesJavajdk1.6.0 _ 23b
1. First find the debug keystore path:
Open Eclipse ---> Windows ---> Preferences ---> Android ---> Build
Generally, the path C: \ Users \ Administrator \. android \ debug. keystore
2. Run the following command in cmd:
1) Open the cmd Console2) navigate to the jdk bin directory.Cd D: \ dev \ java \ jdk1.6.0 _ 12 \ binD:3) execute the command to obtain the authentication fingerprint:Keytool-list-alias androiddebugkey-keystore "C: \ Users \ Administrator \. android \ debug. keystore"-storepass a
Map applications use Com.google.android.maps this package. Used by the Mapview control. But before you need to apply for a development API key, this key will be tied to the current computer user. And then through the key to the official application can get a development of the API
Get the key (ID) Tutorial:Https://www.chromium.org/developers/how-tos/api-keysGet the key (ID) address:Https://cloud.google.com/consoleHttps://console.cloud.google.com/startproject=nide312-165216API KeyClient IDClient keyWorkaroundRun cmd as AdministratorThen enter the following three lines of content to set the secret key:Setx Google_api_key "AIZASYDANMIEHU-5FGB
When loading Google maps, the instructor said that the V3 version was used, so I searched for how to use V2 and how to apply for a key on the webpage.
I asked my teacher how to use V3. I always thought I wanted to upgrade something.
The instructor said that key is not required for V3,
This is not nonsense. I know it
1. Find the keystore
In window-preferences-Android-build, you can see the keystore Directory: C: \ Documents ents and Settings \ Administrator \. Android \ Debug. keystore
2. Run the keytool command on the command, in the Java/bin directory.
Keytool-list-alias androiddebugkey-keystore "C: \ Documents and Settings \ Administrator \. Android \ Debug. keystore"-storepass Android-keypass android
After the execution is successful, we can see MD5 fingerprint
C9: 0C: 45: A5: C0: 87:
After configuring the development environment (including Java environment variables)
----- 1. Find your Debug. keystore file in the eclipse tool,
Choose windows --> preference --> Android --> build,
The default debug keystore value is the path of DEBUG. keystore.
----- 2. Obtain the MD5 value of DEBUG. keystore.
First, run the CMD command line to enter the path where the debug. keystore file is located,
Run the following command:
Keytool-list-alias androiddebugkey-keystore "C: \ Documen
1. First locate the debug keystore location:
2. In "cmd", type the following command:
Keytool-list-alias androiddebugkey-keystore "C: \ Users \ itrue \. Android \ Debug. keystore"-storepass Android-keypass android
If the system prompts that keytool cannot be found, add the bin directory in JDK to the environment variable.
Obtain the authentication fingerprint.
3. Input http://code.google.com/intl/zh-CN/android/maps-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.