Android的AVD无法启动 [英] Android AVD won't start
问题描述
当我尝试从Android工具启动AVD,我看到的只是一个黑色大屏幕Android的写在上面。什么都没发生。可能是什么问题?
When I try to start an AVD from the android tool, all I see is just a big black screen with "ANDROID" written on it. Nothing happens. What could be the problem?
推荐答案
如果你想知道,如果AVD模拟器悬挂或只是把它的甜蜜时光,再看看在Eclipse中控制台和LogCat中的意见。当你的应用在模拟器高达你应该看到在LogCat中线条,上面写着
If you want to know if the AVD emulator is hanging or just taking it's sweet time, then look at the Console and LogCat views in Eclipse. When your app is up in the emulator you should see lines in LogCat that says
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)
和控制台通常会说
[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 }
如果你没有得到在各自的游戏机这些语句在一分钟左右结束,那么你的模拟器可能已经冻结了。
If you don't get to the end of these statements in their respective consoles in a minute or so, then your emulator has probably frozen.
这篇关于Android的AVD无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!