无法在Android Studio中启动模拟器

无法在Android Studio中启动模拟器

问题描述:

我尝试在ubuntu 14.04的android Studio中的模拟器中启动应用程序,它显示以下错误.

I tried to launch application in emulator in android Studio in ubuntu 14.04 and it shows the following errors.

  1. 构建gradle时显示错误:

/home/next/NTE/MachineSetup/android-sdk-linux/tools/emulator -netdelay 无-netspeed完整-avd Nexus_5X_API_24 无法启动 '/home/next/NTE/MachineSetup/android-sdk-linux/tools/qemu/linux-x86/qemu-system-x86_64': 没有这样的文件或目录

/home/next/NTE/MachineSetup/android-sdk-linux/tools/emulator -netdelay none -netspeed full -avd Nexus_5X_API_24 Could not launch '/home/next/NTE/MachineSetup/android-sdk-linux/tools/qemu/linux-x86/qemu-system-x86_64': No such file or directory

  1. gradle构建完成后出现错误:

12/02 16:47:57:等待设备时启动应用程序错误: AVD Nexus_5X_API_24的仿真器进程被杀死.

12/02 16:47:57: Launching app Error while waiting for device: The emulator process for AVD Nexus_5X_API_24 was killed.

我附上了屏幕截图供您参考.

I have attached screenshots for your reference.

第一个错误的原因如下:

The first error's reason is below:

有两个模拟器:一个在$SDK/tools中,另一个在$SDK/emulator中.
$SDK/tools中的一个无法启动.

There are two emulators: one in $SDK/tools, another one in $SDK/emulator.
The one in $SDK/tools cannot start.

请在您的$ PATH变量中将$SDK/emulator放在$SDK/tools之前,这应该可以解决问题.

Please place $SDK/emulator before $SDK/tools in your $PATH variable, it should fix the problem.