谷歌地图在Android的签署API密钥错误 [英] Google map signed api key errors in Android

查看:150
本文介绍了谷歌地图在Android的签署API密钥错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从我的调试映射键切换到我的签字地图键我的地图停止工作。我在logcat中得到以下错误:

When I switched from my debug map key to my signed map key my maps stop working. I get the following errors in logcat:

09-03 18:18:04.112: WARN/System.err(4073): IOException processing: 26
09-03 18:18:04.112: WARN/System.err(4073): java.io.IOException: Server returned: 3
09-03 18:18:04.112: WARN/System.err(4073):     at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
09-03 18:18:04.112: WARN/System.err(4073):     at android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
09-03 18:18:04.112: WARN/System.err(4073):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
09-03 18:18:04.112: WARN/System.err(4073):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
09-03 18:18:04.112: WARN/System.err(4073):     at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
09-03 18:18:04.112: WARN/System.err(4073):     at java.lang.Thread.run(Thread.java:1019)

我双重检查一切,权限和库到位。我已经重新创建烧焦键,没有运气。

I've double checked everything, permissions and library are in place. I've recreated the singed key and no luck.

任何想法?

推荐答案

我有同样的问题,我想,根本没有什么有用的答案围绕在互联网上,以便希望这将有助于每个人的未来。

I had the same problem and I figured there wasn't any helpful answer around on the internet so hoping this should help everyone in the future.

在使用 Google地图Android版,你需要两把钥匙 - 调试和发布。

When using GoogleMaps for Android, you need two keys - debug and release.

调试关键是怎样的一个误导性的术语。该键也被使用,当你在Eclipse中开发的应用程序。所以基本上,使用调试键用于开发,测试,调试。

The "debug" key is kind of a misleading term. This key is also to be used when you develop the app in Eclipse. So essentially, use the debug key for development, testing, debugging.

当你准备启动应用程序推向市场,将机器人:可调试=假的Andr​​oidManifest.xml 和使用签名API密钥。

When you're ready to launch the app to Market, set the android:debuggable="false" in the AndroidManifest.xml and use the Signed API key.

当使用签名的API密钥,在图形页面将显示,只有当应用程序从 Android Market的。所以,从的Eclipse 安装的应用程序(运行方式,调试方式等)或命令行(ADB安装)韩元T显示了图形页面。放心,一旦应用程序在市场上 - 你下载和图形页面将显示

When using the signed API key, the MapView will show up ONLY when the app is installed from the Android Market. So, installing the app from Eclipse (Run As, Debug As, etc) or command line (adb install) won't show the MapView. Rest assured, once the app is in the Market - you download it and the MapView will show up.

通过签名的API密钥,如果部署从Eclise应用程序,你会得到一个服务器返回3,IOProcessing异常26作为一个警告 - 忽略它。

With the signed API key, if you deploy the app from Eclise, you will get a "Server returned 3, IOProcessing Exception 26" as a warning - just ignore it.

注:此外,还要确保有相同的MapView没有重复的实例。如果您的应用需求的x没有。对图形页面 S,产生的x没有。新签署的密钥(每个图形页面),因为谷歌地图有一个查询限制为单个图形页面实例。

Note: Also ensure there are no duplicate instances of the same MapView. If your app needs "x" no. of MapViews, generate "x" no. of new signed keys (one for each MapView) since GoogleMaps has a query limit for a single MapView instance.

有关获得两个按键,操作步骤为获取API密钥谷歌地图在Android

For getting both the keys, follow the steps for Obtaining API keys for GoogleMaps on Android.

编码快乐!

更新:

以上获得API密钥的链接现在是一个去precated程序。对于谷歌地图Android的API V2 前进参见获取API密钥。

The link above for obtaining api keys is now a deprecated procedure. Refer Obtaining API keys for GoogleMaps Android API v2 going forward.

这篇关于谷歌地图在Android的签署API密钥错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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