gpt4 book ai didi

android - 升级到 SDK 2.3 - 现在没有仿真器具有连接性

转载 作者:IT老高 更新时间:2023-10-28 22:20:29 25 4
gpt4 key购买 nike

我已从 2.2 升级到 2.3。我最初认为我自己的 Google map 应用程序无法正常工作并发布了一个问题 link text

我现在意识到问题要广泛得多,因为在创建新的 AVD 时存在的非内置应用程序将起作用。例如,“ map ”应用程序给出“网络故障 - 此应用程序需要有效的数据连接”。浏览器不会连接到 Google 或其他任何东西。对于所有 API 级别,我升级之前存在的 AVD 以及升级后从命令行创建的 AVD 都会发生这种情况。我认为我拥有所有必要的组件:alt text

我试图用最简单的术语来描述这个问题,方法是将它与对 Eclipse 和我编写的应用程序的任何引用分离。新创建的用于过滤除错误以外的所有 AVD 的 logcat 非常长,但我发布了我认为可能相关的日志:

12-07 12:05:42.048: ERROR/System(61): Failure starting core service
12-07 12:05:42.048: ERROR/System(61): java.lang.SecurityException
12-07 12:05:42.048: ERROR/System(61): at android.os.BinderProxy.transact(Native Method)
12-07 12:05:42.048: ERROR/System(61): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-07 12:05:42.048: ERROR/System(61): at android.os.ServiceManager.addService(ServiceManager.java:72)
12-07 12:05:42.048: ERROR/System(61): at com.android.server.ServerThread.run(SystemServer.java:206)
12-07 12:07:22.553: ERROR/CheckinTask(382): Checkin failed: https://android.clients.google.com/checkin (request #0)
12-07 12:07:22.553: ERROR/CheckinTask(382): java.net.UnknownHostException: android.clients.google.com
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByName(InetAddress.java:256)
12-07 12:07:22.553: ERROR/CheckinTask(382): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
12-07 12:07:22.553: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
12-07 12:07:22.553: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
12-07 12:07:22.553: ERROR/CheckinTask(382): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
12-07 12:07:22.553: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
12-07 12:07:22.553: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
12-07 12:07:22.553: ERROR/CheckinTask(382): at android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:248)
12-07 12:07:22.553: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:203)
12-07 12:07:22.553: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:245)
12-07 12:07:22.553: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:313)
12-07 12:07:22.553: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:254)
12-07 12:07:22.553: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:150)
12-07 12:07:22.553: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:221)
12-07 12:07:22.553: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:214)
12-07 12:07:22.553: ERROR/CheckinTask(382): at android.os.AsyncTask$2.call(AsyncTask.java:185)
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
12-07 12:07:22.553: ERROR/CheckinTask(382): at java.lang.Thread.run(Thread.java:1019)
12-07 12:08:43.802: ERROR/CheckinTask(382): Checkin failed: https://android.clients.google.com/checkin (request #0)
12-07 12:08:43.802: ERROR/CheckinTask(382): java.net.UnknownHostException: android.clients.google.com
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByName(InetAddress.java:256)
12-07 12:08:43.802: ERROR/CheckinTask(382): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
12-07 12:08:43.802: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
12-07 12:08:43.802: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
12-07 12:08:43.802: ERROR/CheckinTask(382): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
12-07 12:08:43.802: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
12-07 12:08:43.802: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
12-07 12:08:43.802: ERROR/CheckinTask(382): at android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:248)
12-07 12:08:43.802: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:203)
12-07 12:08:43.802: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:245)
12-07 12:08:43.802: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:313)
12-07 12:08:43.802: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:254)
12-07 12:08:43.802: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:150)
12-07 12:08:43.802: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:221)
12-07 12:08:43.802: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:214)
12-07 12:08:43.802: ERROR/CheckinTask(382): at android.os.AsyncTask$2.call(AsyncTask.java:185)
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
12-07 12:08:43.802: ERROR/CheckinTask(382): at java.lang.Thread.run(Thread.java:1019)
12-07 12:10:10.643: ERROR/CheckinTask(382): Checkin failed: https://android.clients.google.com/checkin (request #0)
12-07 12:10:10.643: ERROR/CheckinTask(382): java.net.UnknownHostException: android.clients.google.com
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByName(InetAddress.java:256)
12-07 12:10:10.643: ERROR/CheckinTask(382): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
12-07 12:10:10.643: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
12-07 12:10:10.643: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
12-07 12:10:10.643: ERROR/CheckinTask(382): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
12-07 12:10:10.643: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
12-07 12:10:10.643: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
12-07 12:10:10.643: ERROR/CheckinTask(382): at android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:248)
12-07 12:10:10.643: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:203)
12-07 12:10:10.643: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:245)
12-07 12:10:10.643: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:313)
12-07 12:10:10.643: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:254)
12-07 12:10:10.643: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:150)
12-07 12:10:10.643: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:221)
12-07 12:10:10.643: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:214)
12-07 12:10:10.643: ERROR/CheckinTask(382): at android.os.AsyncTask$2.call(AsyncTask.java:185)
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
12-07 12:10:10.643: ERROR/CheckinTask(382): at java.lang.Thread.run(Thread.java:1019)
12-07 12:11:41.652: ERROR/CheckinTask(382): Checkin failed: https://android.clients.google.com/checkin (request #0)
12-07 12:11:41.652: ERROR/CheckinTask(382): java.net.UnknownHostException: android.clients.google.com
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.net.InetAddress.getAllByName(InetAddress.java:256)
12-07 12:11:41.652: ERROR/CheckinTask(382): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
12-07 12:11:41.652: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
12-07 12:11:41.652: ERROR/CheckinTask(382): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
12-07 12:11:41.652: ERROR/CheckinTask(382): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
12-07 12:11:41.652: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
12-07 12:11:41.652: ERROR/CheckinTask(382): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
12-07 12:11:41.652: ERROR/CheckinTask(382): at android.net.http.AndroidHttpClient.execute(AndroidHttpClient.java:248)
12-07 12:11:41.652: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.executeWithoutRewriting(GoogleHttpClient.java:203)
12-07 12:11:41.652: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:245)
12-07 12:11:41.652: ERROR/CheckinTask(382): at com.google.android.common.http.GoogleHttpClient.execute(GoogleHttpClient.java:313)
12-07 12:11:41.652: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:254)
12-07 12:11:41.652: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:150)
12-07 12:11:41.652: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:221)
12-07 12:11:41.652: ERROR/CheckinTask(382): at com.google.android.gsf.checkin.CheckinService$1.doInBackground(CheckinService.java:214)
12-07 12:11:41.652: ERROR/CheckinTask(382): at android.os.AsyncTask$2.call(AsyncTask.java:185)
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
12-07 12:11:41.652: ERROR/CheckinTask(382): at java.lang.Thread.run(Thread.java:1019)

我使用的是 64 位的 Vista,JDK 和 Eclipse 是 32 位的(在使用从 0.0 到 2.2 的 SDK 之前,我没有遇到任何问题)。我在另一篇文章中注意到有必要将 ...platform-tools 添加到 PATH 中。我在发行说明中找不到对此的任何引用,但我还是这样做了。

我现在完全被困住了。请任何人提出问题可能是什么?

格林威治标准时间 1540 年更新

关闭 Norton Internet Security删除了 sdk 文件夹,安装了启动包和所有 API 级别。

删除了 c:\users\nick.android(去掉了所有的 AVDS)

从 SDK 管理器重新创建了一个 AVD(带有 Google map 的 9 级)并启动它。

最终结果——同样的错误,浏览器无法连接,内置 map 应用程序也无法连接。

1920 年格林威治标准时间更新

我将旧版 SDK 保存到内存棒中。我把它复制到一个临时目录

alt text

我没有更改 PATH,而是单击了此临时文件夹中的 SDK 管理器并启动了现有的 API 7 级 AVD。浏览器和内置 map 应用程序都运行良好。

提交的错误报告 link text

格林威治标准时间 1325 年 12 月 9 日更新

我设法回滚到 SDK 2.1 并找到了一个旧的 ADT 插件 (0.9.9)。我已将 Eclipse 3.5 设置为使用 SDK 2.1,将 Eclipse 3.6 设置为使用 SDK 2.3。 (我知道不推荐使用 3.6,但它曾经可以与 SDK 2.1 一起使用,尽管代码完成速度很慢)。 SDK 2.3 模拟器仍然无法连接。

如果您正在考虑调查此问题,请备份您之前的 SDK 和插件,否则您可能会得到一个无用的开发环境。

2.3 中全新创建的 AVD 提供:

12-09 13:09:08.823: ERROR/ActivityThread(213): Failed to find provider info for com.google.settings

12-09 13:09:30.193: ERROR/browser(213): onReceivedError -2 http://www.google.com/m?client=ms-android-google&source=android-home The URL could not be found.

当你启动浏览器时

最佳答案

我为遇到此问题的人找到了一个临时解决方案。

你可以像这样在 CMD 提示符下启动你的 AVD

Windows

C:\program files\android\android-sdk-windows\tools\emulator -avd <avdname> -dns-server 8.8.8.8

苹果机
cd ~/Library/Android/sdk/emulator
./emulator -avd <avdname> -dns-server 8.8.8.8

8.8.8.8 是谷歌公共(public) DNS。

问题似乎是模拟器找不到您的计算机当前使用的 DNS。

关于android - 升级到 SDK 2.3 - 现在没有仿真器具有连接性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4376553/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com