how to get a Google Maps API v2 release key

前端 未结 2 1846
囚心锁ツ
囚心锁ツ 2020-12-09 04:49

My app, that uses the google mapview, is ready to be released. My testing was done using the google maps key that I obtained back when I started the project. I am told tha

相关标签:
2条回答
  • 2020-12-09 05:18

    To get SHA-1 key:

    For Linux or OS X, open a terminal window and enter the following:

    keytool -list -v -keystore ~/.android/debug.keystore -aliasandroiddebugkey -storepass android -keypass android

    For Windows Vista and Windows 7, run:

    keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

    You should see output similar to this:

    Alias name: androiddebugkey
    Creation date: Jan 01, 2013
    Entry type: PrivateKeyEntry
    Certificate chain length: 1
    Certificate[1]:
    Owner: CN=Android Debug, O=Android, C=US
    Issuer: CN=Android Debug, O=Android, C=US
    Serial number: 4aa9b300
    Valid from: Mon Jan 01 08:04:04 UTC 2013 until: Mon Jan 01 18:04:04 PST 2033
    Certificate fingerprints:
         MD5:  AE:9F:95:D0:A6:86:89:BC:A8:70:BA:34:FF:6A:AC:F9
         SHA1: BB:0D:AC:74:D3:21:E1:43:07:71:9B:62:90:AF:A1:66:6E:44:5D:75
         Signature algorithm name: SHA1withRSA
         Version: 3
    

    The line that begins SHA1 contains the certificate's SHA-1 fingerprint. The fingerprint is the sequence of 20 two-digit hexadecimal numbers separated by colons.

    0 讨论(0)
  • 2020-12-09 05:27

    Google documents the entire process here.

    Specifically, if you need help finding out how to use keytool, expand the section titled "Displaying the release certificate fingerprint."

    0 讨论(0)
提交回复
热议问题