【发布时间】:2012-05-11 11:03:09
【问题描述】:
我正在使用模拟器 4.0.3,每当运行项目时,新的 android 模拟器就会启动,并且以前的模拟器会显示空白屏幕,即空闲时出现空白屏幕不起作用。会有什么问题?我该如何解决?
重置 adb 时出错
[2012-05-11 16:54:11 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
[2012-05-11 16:54:11 - Unexpected error while launching logcat. Try reselecting the device.] An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395)
at com.android.ddmlib.Device.executeShellCommand(Device.java:397)
at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:102)
at java.lang.Thread.run(Unknown Source)
[2012-05-11 16:54:12 - DeviceMonitor] Connection attempts: 1
下面显示的模拟器图像..
.
而且它非常慢..当我尝试在模拟器中将设备内存大小从 512 增加到 1024 时,它对我不起作用。谁能帮帮我?
【问题讨论】:
-
尝试在eclipse中重置adb。它应该在 DDMS 上显示模拟器。
-
当我不在模拟器上工作 10 分钟时.. 它会闲置并出现空白屏幕..
-
尝试创建另一个具有不同配置的模拟器。检查这是否发生在所有模拟器实例上。如果是这样,您可能需要更新/重新安装您的 avd 管理器。另外,尝试直接从 SDK 文件夹而不是 Eclipse 运行 SDK 管理器,这可能有助于解决问题
-
更新——同时重置 thr adb
-
@SamSPICA --- 我会尝试使用差异配置.. 谢谢..
标签: android eclipse android-emulator avd