谷歌地图报告无效键安卓 [英] Google map reporting invalid key in Android

查看:199
本文介绍了谷歌地图报告无效键安卓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用该密钥工具我在我的关键应用,我签署,当我把它上传到Play商店的应用程序得到了SHA-1指纹。

I got the SHA-1 fingerprint from using the keytool for my application on my key that I sign the application with when I upload it to the play store.

但是,当我打开应用程序在手机上测试它说,这是不正确的密钥。任何想法我可能做错了吗?

But when I open the app on my phone for testing it says it is not the right key. ANy ideas what I could be doing wrong?

不知道更多的信息,我可以给什么不给我的应用程序的安全性信息,所以如果你能帮助给我了,我不能想到请让我来帮助你帮我发信息。

Not sure what more information i can give without giving security info for my app, so if you can help give me anymore information that I can not think of please let me help you help me.

推荐答案

首先用于发展产生的SHA-1 debug.keystore: 导航到C:\ Program Files文件\的Java \ jdk1.6.0 \ BIN> .....在这里你的bin位于下面,然后命令执行

First for the development generate a SHA-1 from debug.keystore: Navigate to C:\Program Files\Java\jdk1.6.0\bin>..... where your bin located then execute below command

 C:\Program Files\Java\jdk1.6.0\bin>keytool -v -list -alias androiddebugkey -keystore "D
:debug.keystore" -storepass android -keypass android
 or
 C:\Program Files\Java\jdk1.6.0\bin>keytool -v -list -alias androiddebugkey -keystore "C:\Documents and Settings\user1\.android\debug.keystore" -storepass android -keypass android

现在,你可以得到一个SHA-1证书,并生成从谷歌API控制台的API密钥。添加此项到您的manifest.xml文件。只记得为发展这个API密钥。使用此键内置APK你无法发布到市场。

Now, you can get one SHA-1 certificate and generate API key from Google API console. Add this key into your manifest.xml file. remember this API key only for the development. Using this key built apk u can not publish into market.

现在,请让自己的密钥库:下面的命令执行

Now, turn to make your own keystore: execute below command

C:\Program Files\Java\jdk1.6.0\bin>keytool -genkey -v -keystore OWN.keystor
e -alias ALIASNAME -keyalg RSA -keysize 2048 -validity 300000

和给所有需要的细节该密钥存储。现在的时间来产生SHA-1从OWN.keystore下面commnad执行

and give all the required details for this keystore. Now time to generate SHA-1 from your OWN.keystore execute below commnad

C:\Program Files\Java\jdk1.6.0\bin>keytool -v -list -alias ALIASNAME -keystore "C:\Program Files\Java\jdk1.6.0\bin\OWN.keystore" -storepass PASSWORD -keypass KEYPASSWORD

现在,你可以得到一个SHA-1证书,并生成从谷歌API控制台的API密钥。更换该密钥到您的manifest.xml文件。现在,您的应用程序已经准备好发布到市场。

Now, you can get one SHA-1 certificate and generate API key from Google API console. Replace this key into your manifest.xml file. Now your app is ready to publish into market.

这5对您​​有所帮助。

This may helpful to you.

这篇关于谷歌地图报告无效键安卓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆