1

谁能帮我运行我的模拟器。我在例外情况下得到了这个。

[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)
4

2 回答 2

2

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

adb kill-server
adb devices

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

重新加载eclipse和模拟器,问题应该解决了。

于 2013-06-24T12:04:19.803 回答
0

我遇到了同样的错误并且厌倦了这个。我尝试了一切杀死/启动服务器,清理项目。我什么都试过了。

突然,我想让我们尝试更改工作区的目标。所以我创建了一个工作区文件夹\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
于 2014-03-09T00:57:11.333 回答