简体   繁体   English

Android模拟器无法在AndroidStudio中启动 - Ubuntu-12.04操作系统

[英]Android Emulator is not starting in AndroidStudio - Ubuntu-12.04 OS

在此输入图像描述 When i try to run hello world program in AndriodStudio (Ubuntu 32bit OS). 当我尝试在AndriodStudio(Ubuntu 32位操作系统)中运行hello world程序时。 I see below message in Console but emulator is not starting. 我在控制台中看到以下消息但模拟器未启动。

Waiting for device.
/home/yahooda/JAVA/android-studio/sdk/tools/emulator -avd test2 -netspeed full -netdelay none

When i am trying to open from terminal 当我想从终端打开时

yahooda@yahooda-System-Product-Name:~$ /home/yahooda/JAVA/android-studio/sdk/tools/emulator -avd test2
PANIC: Could not open: test2

Check in the Android Virtual Device Manager (you should have used it to create test2), to see the status of the test2 device. 检查Android虚拟设备管理器(您应该使用它来创建test2),以查看test2设备的状态。

If you cannot correct any problem, try creating a new AVD. 如果您无法解决任何问题,请尝试创建新的AVD。

I am using Android studio 1.3.2 on Ubuntu 15.04. 我在Ubuntu 15.04上使用Android studio 1.3.2。 When I tried running an AVD from studio, nothing happened. 当我尝试从工作室运行AVD时,什么也没发生。 Even when I run my correct program from studio to use AVD, nothing appeared. 即使我从工作室运行我正确的程序使用AVD,也没有出现。 No errors as well. 没有错误。 And I did wait long enough to be sure that emulator never started. 我确实等了很长时间,以确保模拟器永远不会启动。

When running the emulator from ~/Android/Sdk/tools folder and gave options like in this document: http://developer.android.com/tools/help/emulator.html 从〜/ Android / Sdk / tools文件夹运行模拟器并提供此文档中的选项时: http//developer.android.com/tools/help/emulator.html

There was bus error. 有总线错误。 KVM was properly set. KVM设置正确。 After hours of figuring out I tried uninstalling Android SDK tools from Android SDK manager. 经过几个小时的计算,我尝试从Android SDK管理器中卸载Android SDK工具。 And reinstalled them. 并重新安装它们。

It started working. 它开始工作了。 I hope this might help people who are looking for solution to similar problem. 我希望这可以帮助那些正在寻找解决类似问题的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM