升级到SDK2.3,现在地图不显示了

问题描述 投票:0回答:2

我的错是不耐烦,但我刚刚在 Eclipse 3.5 上安装了 Gingerbread SDK 和新的 Eclipse ADT 插件 现在,当我运行一个在 2.2 上运行良好的现有 Google 地图项目时,我在 Eclipse 中运行时看不到地图显示,就像我有错误的调试地图 API 密钥一样。 (我只看到灰屏和左下角的 Google 徽标。)

我有使用旧的 Google API [Android 2.1 update1] 的构建路径,就像以前一样,并且目标 AVD 和以前一样是 Google API 级别 7。 (我还创建了一个新的 Google API 级别 7,但这也不起作用)。

向后兼容性中的某些内容似乎在某个地方被破坏了。 logcat 中 可能 唯一重要的是:

12-06 19:10:31.095: ERROR/ActivityThread(231): Failed to find provider info for com.google.settings

其中 231 是我的应用程序的 PID。

所有建议将不胜感激

(我已向 Google 核实我的调试 API 密钥仍然正常)

(我尝试在这个问题中添加姜饼标签,但没有足够的代表。也许有人想添加一个?)

对于奥克塔维安:

manifest.xml 的一部分

<uses-sdk android:minSdkVersion="4" />

默认.属性

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
# 
# This file must be checked in Version Control Systems.
# 
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=Google Inc.:Google APIs:7
apk-configurations=

我从插件导入了示例 MapsDemo 项目,将我的 API 密钥粘贴到 xml 中,然后看到这个:

12-06 21:55:16.722: ERROR/MapActivity(492): Couldn't get connection factory client

在 logcat 中(492 是示例应用程序的 PID,我仍然只看到灰屏 - 没有地图) 我想知道这是否相关?

更新

这不仅仅是地图应用程序。 每个 AVD(新创建的或预先存在的)上需要网络连接的每个应用程序都无法连接。内置浏览器无法找到 google。名为“地图”的内置应用程序出现“正在加载”,然后是“网络故障 - 此应用程序需要有效的数据连接”。

我做了什么?请建议我该如何解决?

android android-sdk-2.3
2个回答
0
投票

在我的 AVD 上完美运行。确保针对正确的平台进行测试。这意味着请确保创建 2.3 Google API AVD。


0
投票

强文字

Bl强调文字lockquote

© www.soinside.com 2019 - 2024. All rights reserved.