我的应用已准备就绪,并且在将其上传到Google Play商店之前效果很好。
我将我的应用上传到Play商店后,谷歌地图服务无效。由于某种原因,地图是空的。
为什么会这样?
答案 0 :(得分:2)
您需要获取发布密钥
https://developers.google.com/maps/documentation/android-api/signup#release-cert
对于Linux或OS X,打开终端窗口并输入以下内容:
keytool -list -v -keystore YOUR_KEY_PATH
对于Windows Vista和Windows 7,请运行:
keytool -list -v -keystore YOUR_KEY_PATH
就我而言,我正在使用Linux而我的命令是:
keytool -list -v -keystore ~/projects/keys/myapp.jks
获得结果
Alias name: ALIAS NAME
Creation date: Jan 01, 2013
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Android Release, O=Android, C=US
Issuer: CN=Android Release, 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