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 に答える