Android AVD无法启动

7 android android-emulator

当我尝试从Android工具启动AVD时,我看到的只是一个黑色的大屏幕,上面写着"ANDROID".什么都没发生.可能是什么问题呢?

小智 6

哇,事实证明它只需要永远加载.问题已结束:-)

  • 如果你的下一个问题是如何加快速度,那就有坏消息.http://stackoverflow.com/questions/3210198/unbearably-slow-android-emulator-is-there-a-fix (3认同)

ang*_*guy 2

如果您想知道 AVD 模拟器是否挂起或只是在等待一段时间,请查看 Eclipse 中的 Console 和 LogCat 视图。当您的应用程序在模拟器中启动时,您应该会在 LogCat 中看到以下几行:

04-04 16:49:51.475: INFO/ActivityManager(58): Displayed activity Your_packagename/.Your_App Name: 1191 ms (total 30764 ms)
04-04 16:49:51.475: INFO/ActivityManager(58): Displayed activity com.android.launcher/com.android.launcher2.Launcher: 30766 ms (total 30766 ms)
Run Code Online (Sandbox Code Playgroud)

控制台通常会说

[2011-04-04 16:48:58 - YourApp] ------------------------------
[2011-04-04 16:48:58 - YourApp] Android Launch!
[2011-04-04 16:48:58 - YourApp] adb is running normally.
[2011-04-04 16:48:58 - YourApp] Performing your application here activity launch
[2011-04-04 16:48:58 - YourApp] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_2.2_L8'
[2011-04-04 16:48:58 - YourApp] Launching a new emulator with Virtual Device 'AVD_2.2_L8'
[2011-04-04 16:48:59 - YourApp] New emulator found: emulator-5554
[2011-04-04 16:48:59 - YourApp] Waiting for HOME ('android.process.acore') to be launched...
[2011-04-04 16:49:20 - YourApp] HOME is up on device 'emulator-5554'
[2011-04-04 16:49:20 - YourApp] Uploading YourApp.apk onto device 'emulator-5554'
[2011-04-04 16:49:20 - YourApp] Installing YourApp.apk...
[2011-04-04 16:49:48 - YourApp] Success!
[2011-04-04 16:49:48 - YourApp] Starting activity your_application on device emulator-5554
[2011-04-04 16:49:50 - YourApp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=your_package/.your_app }
Run Code Online (Sandbox Code Playgroud)

如果您在一分钟左右的时间内没有在各自的控制台中完成这些语句,那么您的模拟器可能已经冻结。