简体   繁体   English

设备中安装了.apk时,google map无法正常工作

[英]google map not working when .apk is installed in Device

I have created a project as per instructions at http://blog-emildesign.rhcloud.com/?p=435 which was instructed at some other query. 我已经按照http://blog-emildesign.rhcloud.com/?p=435上的说明创建了一个项目,该项目在其他查询中得到了说明。

It was not working in Android Virtual Device which came with the eclipse I downloaded. 它在我下载的日食附带的Android虚拟设备中不起作用。 I was getting some error regarding GPU V2 was required. 我遇到了一些关于需要GPU V2的错误。 So I configured Genymotion virtual device with Eclipse and its working very smoothly. 因此,我使用Eclipse配置了Genymotion虚拟设备,并且该设备运行非常顺畅。

After that I exported the project and created .apk file. 之后,我导出了项目并创建了.apk文件。 Then I unistalled the app from the virtual device and re-installed the .apk file which was extracted. 然后,我从虚拟设备上取消安装了该应用程序,然后重新安装了提取的.apk文件。 On doing that the map is not getting displayed. 这样做时,地图不会显示出来。 The same thing is occuring when the file is installed in a real device (Samsung Note II). 将文件安装在真实设备中时,会发生同样的事情(Samsung Note II)。

Please help!! 请帮忙!!

Use Something like this: 使用这样的东西:

  1. Update the google play services in the SDK. 更新SDK中的Google Play服务。

  2. Manually uninstall the App from device and restart the device. 从设备手动卸载该应用,然后重新启动设备。 i have tried it and its going perfectly bro 我已经尝试过了,它完美的兄弟

Also do one thing get the new api key to edited the new sh1 code from https://code.google.com/apis/console/ 还可以做一件事,从https://code.google.com/apis/console/获取新的api密钥以编辑新的sh1代码。

you can get your sh1 code from window- preference-android-buid 您可以从window- preference-android-buid获取sh1代码

Try the steps in https://developers.google.com/maps/documentation/android/start 尝试https://developers.google.com/maps/documentation/android/start中的步骤

One general thing is , If your map is not getting displayed then your Key is wrong . 一件事是,如果没有显示地图,则您的密钥是错误的。

You should generate a separate key for running from eclipse using debug.keystore and separate key for .apk files using yourapp.keystore that you generate while taking .apk file . 您应该使用debug.keystore生成用于从Eclipse运行的单独密钥,并使用在获取.apk文件时生成的yourapp.keystore为.apk文件生成单独的密钥。

It seems to be debug/production keystore issue. 似乎是调试/生产密钥库问题。 Just follow this tutorial: https://developers.google.com/maps/documentation/android/intro 只需按照以下教程操作即可: https : //developers.google.com/maps/documentation/android/intro

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM