How to regenerate Debug. keystore in Android SDK

Source: Internet
Author: User
Tags certificate fingerprint xml format example
1) first, you need to determine the JDK installation location, Windows-> preferences-> JAVA-> installed jres. You can see that it is the location of JRE, in dos cmd mode, check whether the path of your current system is included. If it is not included in the current environment parameter. Because the keytool command we want to use is in this directory. 2) Find the debug of AVD. keystore location, in the windows-> perferences-> Android-> build, default debug keystore text box, List C: \ Documents ents and Settings \ xxxxuser \. android \ debug. keystore, which is the default debug. keystore. You can change the file name first. We need to create a new debug. keystore3) Then we create a new debug. keystore, under cmd, enter c: \ Users \ Administrator \. run the following command in the android Directory: keytool-genkey-v-keystore debug. keystore-alias androiddebugkey-keyalg RSA-validity 10000 enter the password. After confirming the information, you can generate a debug program. keystore

4) Well, next we need to get MD5 and apply for an apikey from Google. It is very easy to execute: keytool-list-alias androiddebugkey-keystore debug in the current directory. keystore enter the password you set in step 3 as prompted. OK, the following information will be displayed: Certificate fingerprint (MD5): FC: ED: de: BS: 16: 1A: E8: 05: F0: 44: AD: 4E: 45: 42: 4b: D4 this is the FC: ED: de: BS: 16: 1A: E8: 05: F0: 44: AD: 4E: 45: 42: 4b: D4

Visit http://code.google.com/android/maps-api-signup.htmlin the my certificate's MD5 fingerprint text box and enter the MD5 code you just obtained and click Generate API key. The premise is that you have a Google account. Google map apigoogle code homepage> Google map API registration Thank you for registering the android map API key! Your key is 0vwb_8r4e2tib8rp7d5hs8rq3e_um_3xryrjo3a. This key applies to all applications that use the certificate corresponding to the following fingerprint for verification: 25: 93: 08: C1: 02: 7d: E3: 8d: 5E: 22: 23: 13: B5: DD: F4: E2 the following is an XML format example to help you understand the map function:   <Com. Google. Android. Maps. mapview    Android: layout_width = "fill_parent"    Android: layout_height = "fill_parent"    Android: apikey = "0vwb_8r4e2tib8rp7d5hs8rq3e_um_3xryrjo3a"    />    For more information, see the API documentation.

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.