java Android 模拟器无法启动
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12802908/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android Emulator Does Not Start
提问by dido
I have installed all of the necessary parts and the ADT plugin for Eclipse. When I create an Android virtual device and start it, nothing appears. I get the box where the green status bar shows up and says 'Starting emulator for AVD'. However, nothing appears afterwards. No logs in the Console either....does anyone have any suggestions? thanks.
我已经为 Eclipse 安装了所有必要的部分和 ADT 插件。当我创建一个 Android 虚拟设备并启动它时,什么也没有出现。我看到绿色状态栏出现的框,上面写着“正在启动 AVD 模拟器”。然而,之后什么都没有出现。控制台中也没有日志......有人有什么建议吗?谢谢。
回答by user1410657
You will have more chances to debug the issue if you start emulator with “emulator” command:
如果您使用“emulator”命令启动模拟器,您将有更多机会调试问题:
emulator @avd-name
“avd-name” is your emulator image name as you created it.
“avd-name”是您创建时的模拟器映像名称。
And if you don't happen to have “emulator” command, try adding “android-sdk-linux_x86/tools/” (where android-sdk-linux_x86 is your android SDK installation directory) to your PATH.
如果您没有“模拟器”命令,请尝试将“android-sdk-linux_x86/tools/”(其中 android-sdk-linux_x86 是您的 android SDK 安装目录)添加到您的 PATH。
回答by niccosuave
I had the same issue for a bit and realized it was because when you set the skin it is default set to WVGA800 but for whatever reason it only worked if that was set to HVGA.
我遇到了同样的问题,并意识到这是因为当您设置皮肤时,它默认设置为 WVGA800,但无论出于何种原因,它仅在设置为 HVGA 时才有效。
回答by Abbas
I found the problem is the graphic card. The emulator may not recognize you graphic card try again with another one.
我发现问题是显卡。模拟器可能无法识别您的图形卡,请使用另一个图形卡重试。
回答by Andrzej Rehmann
For Ubuntu (I use Xubuntu):
对于 Ubuntu(我使用 Xubuntu):
Mine Android Virtual Devices didn't started because i used NVIDIA drivers for ubuntu. After changing drivers to Nouveau it booted in 15sec.
我的 Android 虚拟设备没有启动,因为我为 ubuntu 使用了 NVIDIA 驱动程序。将驱动程序更改为 Nouveau 后,它在 15 秒内启动。
Go to "Settings Manager" -> Software & Updated -> Additional Drivers chose: "Using X.org x server -- Nouveau display driver (open source)"
转到“设置管理器”-> 软件和更新-> 附加驱动程序选择:“使用 X.org x 服务器 -- Nouveau 显示驱动程序(开源)”
NVIDIA F# U http://www.youtube.com/watch?v=55XVnJ_0qhg
NVIDIA F# U http://www.youtube.com/watch?v=55XVnJ_0qhg
回答by C-Otto
This also is related to the screen size of the emulator.
这也和模拟器的屏幕大小有关。
I created a fresh AVD with a 768x1280 display. This starts fine. Then I replaced the values of lcd.height
, lcd.width
, skin.name
, skin.path
in the config files to represent 1080x1920. After that the emulator does not start anymore.
我用 768x1280 显示器创建了一个新的 AVD。这开始很好。然后我将配置文件中的lcd.height
, lcd.width
, skin.name
,的值替换为skin.path
1080x1920。之后模拟器不再启动。
I start the emulators inside a Xvnc session with 1360x768 pixels, but it also does not work in a Xvnc session with 3000x2000 pixels.
我在 1360x768 像素的 Xvnc 会话中启动模拟器,但它在 3000x2000 像素的 Xvnc 会话中也不起作用。
回答by cdpnet
I had a similar issue. Windows 7. ADT Bundle 64-bit. I was logging in to my PC with Active Directory credentials(corporate). Emulator was not starting at all, after I tried many different things. I switched to a local administrator login, and everything worked.
我有一个类似的问题。Windows 7. ADT 捆绑包 64 位。我使用 Active Directory 凭据(公司)登录到我的 PC。在我尝试了许多不同的事情之后,模拟器根本没有启动。我切换到本地管理员登录,一切正常。
This is not necessarily the solution. I would rather want to know how to make it work on my AD account.
这不一定是解决方案。我更想知道如何让它在我的 AD 帐户上工作。