模拟器未开始出现类型2错误

时间:2013-06-24 11:47:44

标签: android

任何人都可以帮我运行我的模拟器。我得到的是以下异常。

[2013-06-24 17:06:03 - Example] Installing Example.apk...
[2013-06-24 17:06:05 - Example] Success!
[2013-06-24 17:06:05 - Example] Starting activity com.example.stbclient.StbClientLauncher on device emulator-5556
[2013-06-24 17:06:07 - Example] Device not ready. Waiting 3 seconds before next attempt.
[2013-06-24 17:06:07 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
[2013-06-24 17:06:07 - Example] ActivityManager: at dalvik.system.NativeStart.main(Native Method)
[2013-06-24 17:06:10 - Example] Starting activity com.globems.stbclient.StbClientLauncher on device emulator-5556
[2013-06-24 17:06:12 - Example] Device not ready. Waiting 3 seconds before next attempt.
[2013-06-24 17:06:12 - Example] ActivityManager: at com.android.commands.am.Am.run(Am.java:101)
[2013-06-24 17:06:12 - Example] ActivityManager: at com.android.commands.am.Am.main(Am.java:82)
[2013-06-24 17:06:12 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[2013-06-24 17:06:12 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
[2013-06-24 17:06:12 - Example] ActivityManager: at dalvik.system.NativeStart.main(Native Method)
[2013-06-24 17:06:15 - Example] Starting activity com.globems.stbclient.StbClientLauncher on device emulator-5556
[2013-06-24 17:06:18 - Example] Device not ready. Waiting 3 seconds before next attempt.
[2013-06-24 17:06:18 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
[2013-06-24 17:06:18 - Example] ActivityManager: at dalvik.system.NativeStart.main(Native Method)
[2013-06-24 17:06:21 - Example] Starting activity com.globems.stbclient.StbClientLauncher on device emulator-5556
[2013-06-24 17:06:23 - Example] Device not ready. Waiting 3 seconds before next attempt.
[2013-06-24 17:06:23 - Example] ActivityManager: at com.android.commands.am.Am.run(Am.java:101)
[2013-06-24 17:06:23 - Example] ActivityManager: at com.android.commands.am.Am.main(Am.java:82)
[2013-06-24 17:06:23 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[2013-06-24 17:06:23 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
[2013-06-24 17:06:23 - Example] ActivityManager: at dalvik.system.NativeStart.main(Native Method)
[2013-06-24 17:06:26 - Example] Starting activity com.globems.stbclient.StbClientLauncher on device emulator-5556
[2013-06-24 17:06:28 - Example] ActivityManager: Error type 2
[2013-06-24 17:06:28 - Example] ActivityManager: android.util.AndroidException: Can't connect to activity manager; is the system running?
[2013-06-24 17:06:28 - Example] ActivityManager: at com.android.commands.am.Am.run(Am.java:101)
[2013-06-24 17:06:28 - Example] ActivityManager: at com.android.commands.am.Am.main(Am.java:82)
[2013-06-24 17:06:28 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[2013-06-24 17:06:28 - Example] ActivityManager: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:235)
[2013-06-24 17:06:28 - Example] ActivityManager: at dalvik.system.NativeStart.main(Native Method)

2 个答案:

答案 0 :(得分:2)

关闭eclipse和模拟器。然后运行以下命令

adb kill-server
adb devices

运行adb设备将重新启动adb服务器。

重新加载eclipse和模拟器并解决问题。

答案 1 :(得分:0)

我遇到了同样的错误并厌倦了这一点。 我尝试了所有kill / start服务器,项目干净。我尝试了一切。

我突然想到让我们尝试更改工作区目的地。所以我创建了一个工作区文件夹\adt-bundle-windows-x86_64-20131030\。 之后我再次创建了一个新应用程序,删除了旧的应用程序,还删除了旧的AVD,并使用Nexus S创建了一个新应用程序。

这是成功的。

[2014-03-09 06:14:29 - MyFirstApp] Uploading MyFirstApp.apk onto device 'emulator-5554

[2014-03-09 06:14:30 - MyFirstApp] Installing MyFirstApp.apk...

[2014-03-09 06:16:24 - MyFirstApp] Success!

[2014-03-09 06:16:24 - MyFirstApp] Starting activity com.example.myfirstapp.MainActivity on device emulator-5554