谷歌地图上没有显示的手机,但工作在模拟器 [英] Google Maps not showing on phone but works on emulator

查看:135
本文介绍了谷歌地图上没有显示的手机,但工作在模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用eclipse做一个Android应用程序。它在我的模拟器可以正常使用。

I recently made an Android application using eclipse. It is working perfectly in my emulator.

但是,当我出口使用导出向导在Eclipse上它制成的.apk文件和证书文件输出,我把它复制到我的Andr​​oid手机,但地图上没有显示,那只能说明青瓦我的应用程序。

But when I export my application using the Export Wizard on Eclipse it made outputs of .apk and certificate files, I copied it to my Android phone, but the map doesn't show, it only shows gray tiles.

它显示与当前的经纬度敬酒的功能。它显示我的模拟器,但不是在我的手机上。

It has a function of displaying a Toast with current Latitude and Longitude. It's displaying on my emulator, but not in my phone.

这也显示了检查,如果设备的GPS是活动的敬酒。它适用于我的仿真器和电话。

It also displays a Toast that checks if the device's GPS is active. It works both on my emulator and phone.

我不知道什么是我的应用程序的问题。谁能帮我?

I don't know what's the problem of my application. Can anyone help me?

推荐答案

也许这个问题在不同的证书不同的地图API密钥规定。请记住,Google Maps API密钥是基于证书,意味着你应该根据你的调试证明书1 - 你会用它来调试,以及一个基于排放证书。如果你尝试运行与设备上调试证书大概应该签署一项应用程序的版本。希望这有助于。

Probably the problem lays in different Maps API keys for different certificates. Remember, a Maps API key is based on a certificate, means you should have one based on your debug certificate - you'll use it for debugging, and one based on the release certificate. If you'll try to run the version of your application signed with the debug certificate on your device it should probably work. Hope this helps.

这篇关于谷歌地图上没有显示的手机,但工作在模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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