0

不耐烦是我的错,但我刚刚在 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 密钥仍然可以)

(我试图为这个问题添加一个 Gingerbread 标签,但没有足够的代表。也许有人想添加一个?)

对于屋大维:

manifest.xml 的一部分

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

默认.properties

# 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(新创建的或预先存在的)上连接网络的应用程序都无法连接。内置浏览器找不到谷歌。名为“地图”的内置应用程序出现“正在加载”,然后是“网络故障 - 此应用程序需要有效的数据连接”。

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

4

1 回答 1

0

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

于 2010-12-06T20:09:26.363 回答