无法在Android Studio中启动模拟器 [英] Could not launch emulator in Android Studio

查看:579
本文介绍了无法在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.

这篇关于无法在Android Studio中启动模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆