升级到SDK 2.3 – 现在没有仿真器连接

我已经从2.2升级到2.3。 我本来以为我自己的Google地图应用程序只是一个问题,不工作,并发布了一个问题链接文本

我现在意识到这个问题要广泛得多,因为创build新的AVD时内置的应用程序不会有效。 例如,“地图”应用程序给出了“networking故障 – 这个应用程序需要一个工作的数据连接”。 浏览器将无法连接到谷歌或其他任何东西。 对于所有API级别的升级之前存在的AVD和升级后的命令行创build的AVD,都会发生这种情况。 我有所有我认为必要的组件: 替代文字

我试图用最简单的术语来描述这个问题,把它从任何对Eclipse的引用和我写的应用程序中解耦。 一个新创build的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) 

我使用的是Vista 64位,JDK和Eclipse是32位(从0.0到2.2之前,我没有任何问题)。 我注意到在另一篇文章中,有必要将…平台工具添加到PATH。 在发行说明中我找不到任何这方面的内容,但是我仍然这样做了。

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

格林尼治标准时间1540

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

删除c:\ users \ nick.android(摆脱所有的AVDS)

从SDKpipe理器重新创build了一个AVD(带有Google地图的第9层)并启动了它。

networking结果 – 只是相同的错误,浏览器不会连接,也不会内置地图应用程序。

格林尼治标准时间1920

我有一个旧的SDK保存到记忆棒。 我将其复制到一个临时目录

替代文字

我没有更改PATH,而是在此临时文件夹中单击了SDKpipe理器,并启动了现有的API级别7 AVD。 浏览器和内置的地图应用程序都工作正常。

归档错误报告链接文本

格林威治时间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版本中新build立的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. 

当你启动浏览器

我发现有这个问题的人的临时解决scheme。

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

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

这是谷歌公共DNS。

问题似乎是模拟器无法find您的计算机当前正在使用的DNS。

解决方法是:将您的DNS服务器(在开发机器上)更改为固定的,例如8.8.8.8

为了在仿真器上使用互联网,如果您在代理服务器后面设置,请执行以下步骤:

进入设置 – >无线和networking – >移动networking – >接入点名称。 按下菜单button。 将出现一个选项菜单。

从选项菜单中select新的APN。

点击名称。 提供名称给apn说我的APN。 点击APN。 inputwww。

在此之后检查互联网连接