Keytool error while applying for Android API key, Java.lang.exception:keystore does not exist

Source: Internet
Author: User
Tags md5
1. First get your debug KeyStore location:
Open the eclipse--->windows--->preferences--->android--->build
View the default debug KeyStore location, for example: C:\Documents and Settings\ (name of your computer) \.android\debug.keystore
Copy this file to the C disk or other letter (the simplest way to copy directly to the Java Bin directory)
2. Keytool is a Java-provided command to use this file to locate in the Java Bin directory:
For example My computer This directory is: C:\Program files\java\jdk1.6.0_11\bin
Executing in cmd: Keytool-list-keystore debug.keystore (easiest way to copy directly to the Java Bin directory)
Enter Password Android carriage return
Execution results:
Androiddebugkey, 2009-10-04, Privatekeyentry,
Fingerprint authentication <md5>: XX:XX:XX:XX:XX:XX:XX:XX .......
Here's the XX:XX:XX:XX:XX:XX:XX:XX ...... That's your certified fingerprint.

3. Open http://code.google.com/intl/zh-CN/android/maps-api-signup.html
Fill in your Certified fingerprint (MD5) to obtain the Apikey, the results show as follows:
Thank you for registering your Android map API key.
Your key is:
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

4. Add the key to the Mapview component, OK

5. Additional Network permissions and add GoogleMap class libraries are required:
Note the red section below:
< XML version= "1.0" encoding= "Utf-8"?>
< manifest xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "Com.android.mapapi"
Android:versioncode= "1"
Android:versionname= "1.0" >
<application android:icon= "@drawable/transglas" android:label= "@string/app_name" >
<activity android:name= ". GeoPoint1 "
Android:label= "@string/app_name" >
<intent-filter>
<action android:name= "Android.intent.action.MAIN"/>
<category android:name= "Android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<uses-library android:name= "Com.google.android.maps" ></uses-library>
</application>

< uses-permission android:name= "Android.permission.ACCESS_FINE_LOCATION" ></uses-permission>
< uses-permission android:name= "Android.permission.ACCESS_COARSE_LOCATION" ></uses-permission>
< uses-permission android:name= "Android.permission.INTERNET" ></uses-permission>
</manifest>
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.