更新Android应用程序 - 地图问题 [英] Updating Android App - Maps Problems

查看:131
本文介绍了更新Android应用程序 - 地图问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要更新,是由别人开发的Andr​​oid应用程序。本身更新很简单,它是为XML的布局简单的更改。
所以我有一个计划如下:

I need to update an Android app that was developed by someone else. Update by itself is simple, it's simple changes to XML layouts. So I have a following plan:


  • 更新应用(完成)

  • 测试模拟器上( - 地图不工作)困在这里!

  • 测试设备上

  • 发布更新版本的商店。

不幸的是我有应用多张问题。
首先,它不编译,因为项目建设目标API被设置到Android 2.3.3。
有为什么它没有被设置为谷歌API的2.3.3什么原因?
当我将其更改为谷歌的API就可以编译和运行,但我对我的地图显示不正确。
所有我能看到的是在它之上的灰色矩形和注释。我收到与之相关的以下错误消息。

Unfortunately I am having mulitple problems with the app. At first, it doesn't compile because the Project Build Target API was set to Android 2.3.3. Is there any reason why it wasn't set to Google APIs 2.3.3 ? When I change it to Google APIs it compiles and runs but I my maps don't display correctly. All I can see is gray rectangle and annotations on top of it. I am getting following error message associated with it.

05-11 20:45:42.554: W/System.err(598): java.io.IOException: Server returned: 3
05-11 20:45:42.559: W/System.err(598):  at android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)

据我从谷歌和堆栈溢出这可能与注册该应用程序搜索的理解。目前,应用程序使用谷歌地图的第一版。

As far as I understood from searching with Google and Stack Overflow that might be related to signing up the application. Currently app is using v1 of Google Maps.

删除debug.keystore和按键没有帮助。

Deleting debug.keystore and key set doesn't help.

我不知道如何与它进行。任何帮助将AP preciated。

I am not sure how to proceed with it. Any help will be appreciated.

推荐答案

为了使地图显示您需要与关键应用程序使用API​​相关联的签名密钥。 Android的API V1现在是很precated,所以你的选择是有限的:

In order to make maps display you need a signing key that is associated with the API key application was using. Android API v1 is now deprecated, so your options are limited:


  • 与previous开发商,并要求他们为 debug.keystore ,它存储在〜/ .android / C:/Users/user.name/.android / 目录或

  • 使用发布签名密钥的测试(这可能是麻烦的)

  • contact previous developer and ask them for debug.keystore, which is stored in ~/.android/ or C:/Users/user.name/.android/ directory or
  • use release signing key for testing (this might be cumbersome)

根据什么应用程序是,它也可能是切换到API第2版好还是坏主意。新的API仍然有一些丑陋的虫子implement执行,但如果地图用法很简单,你不会注意到他们。该API或v2是pretty不错。

Depending on what application is that it might also be a good or bad idea to switch to API v2. New API still has some ugly impl bugs, but you won't notice them if maps usage is simple. The API or v2 is pretty good.

这篇关于更新Android应用程序 - 地图问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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