谷歌地图没有测试设备(实际设备)上,装上普通设备,但负载 [英] Google map not loading on normal devices but loads on test device(real device)

查看:168
本文介绍了谷歌地图没有测试设备(实际设备)上,装上普通设备,但负载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Andr​​oid应用程序中的谷歌地图,我已经得到了API密钥从谷歌API控制台我的应用程序,它成功地加载地图在我的测试设备,并将这些设备与我共享的apk文件,但是经过我已经发表在Play商店的应用程序,用户下载应用程序,地图不加载。 这是怎样,而测试设备上正常运行应用程序的外观。

I have a google map in my android application, i have got the api key in my app from Google api console and it sucessfully loads the map in my test device and to those device with whom i shared the apk file, but after i have published the app on play store, and the user downloads the app, the map does not load. This is how the app looks while functioning normally on a test device.

这是它的外观在下载应用程序后,

This is how it looks after downloading the app

API控制台

我失去了任何步骤?

推荐答案

现在的问题是,你还没有添加签名后的apk的SHA1关键在你的谷歌API控制台。

The problem is that you have not added the SHA1 key of your signed apk in your google api console.

做到这一点 -

在创建签名后的apk进行生产复制的签名版本的新的SHA1键。

While creating your signed apk for production copy the new SHA1 key of the signed build.

在签名过程中,类似的输出,以下列出将出现在控制台面板内:

During the process of signing, output similar to that outlined below will appear within the Console panel:

[2013-06-13 10:34:39 - ReleaseTest] New keystore C:\Users\nas\Documents\AndroidReleaseAPK\ReleaseTest.apk has been created.
[2013-06-13 10:34:39 - ReleaseTest] Certificate fingerprints:
[2013-06-13 10:34:39 - ReleaseTest]   MD5 : FA:65:D--------------
[2013-06-13 10:34:39 - ReleaseTest]   SHA1: D1:E-------------------

或者它也将出现在弹出,你会签约前最后命名的构建。

or it will also appear on the popup where you will name your build finally before signing it.

使用此SHA1建立在API控制台新的密钥,并包含在你的应用程序。 该地图将加载成功。

Use this SHA1 to create new key at api console and include that in your app. The map will load successfully.

编辑: - 后,你已经完成了上面的过程,千万不要点击右键,从偏食再次运行该项目,这将使该应用从它的默认SHA1密钥加载。登录后的应用程序,手动复制粘贴签署.apk文件到您的设备。这将使它发挥作用。

-After you have followed the above procedure, do not right click and run the project again from eclipse, that will make the app to load from its default sha1 key. After you sign the app, manually copy paste the signed .apk to your device. That will make it work.

这篇关于谷歌地图没有测试设备(实际设备)上,装上普通设备,但负载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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