Api key android make“无法获取连接工厂客户端"? [英] Api key android make "couldn't get connection factory client"?

查看:23
本文介绍了Api key android make“无法获取连接工厂客户端"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的是安卓的初学者.我想问一些问题.谢谢你的回答:)

i'am really beginner in android. i want to ask some questions. thank you for answer :)

  1. 我们如何知道我们的 API 密钥是否与我们的密钥库不匹配
  2. 我必须使用 Sha1 还是 Md5 来在谷歌控制台中获取我的 API 密钥?因为一些博客或网站说使用 Sha1,而另一个说使用 Md5.

我在运行 mapactivity 时遇到问题,错误无法获得连接工厂客户端"像这样 MapActivity 无法获取连接工厂客户端 和这个 https://stackoverflow.com/questions/20537934/couldnt-get-connection-factory-client-地图活动-android.

i've problem when running the mapactivity , error "couldn't get connection factory client" like this MapActivity couldn't get connection factory client and this https://stackoverflow.com/questions/20537934/couldnt-get-connection-factory-client-mapactivity-android.

上面的问题是我问这个问题的原因.非常感谢:)

the problem above is the reason i ask the question.thank you so much :)

推荐答案

首先,抱歉回答晚了 :).您必须使用 sha1 指纹来生成新的 api-key.您可以使用 .keystore 文件获取 sha1.在带有 debug.keystore 文件的调试模式下,您可以获得 sha1.但是在您使用 debug api-key 发布您的应用程序后,这将不起作用.您应该为它生成发布 api-key.首先,您必须签署您的应用程序并创建新的私有 .keystore 文件.然后你可以使用这个私有密钥库文件获取 sha1.之后,您可以为您的应用生成发布 api-key.

Firstly, sory for the late answer :). You must use sha1 fingerprint to generate new api-key. You can get your sha1 with your .keystore file. In debug mode with debug.keystore file you can get sha1. But this will not work after you publish your app with debug api-key. You should generate release api-key for it. Firstly you must sign your app and create new private .keystore file. Then you can get sha1 with this private keystore file. After that, you can generate release api-key for your app.

这篇关于Api key android make“无法获取连接工厂客户端"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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