无法在 Android Studio 中启动模拟器 [英] Could not launch emulator in Android Studio
问题描述
我尝试在 ubuntu 14.04 中的 android Studio 模拟器中启动应用程序,它显示以下错误.
- gradle 构建过程中显示的错误:
<块引用>
/home/next/NTE/MachineSetup/android-sdk-linux/tools/emulator -netdelay无 -netspeed full -avd Nexus_5X_API_24无法启动'/home/next/NTE/MachineSetup/android-sdk-linux/tools/qemu/linux-x86/qemu-system-x86_64':没有那个文件或目录
- gradle 构建完成后出现错误:
<块引用>
12/02 16:47:57:在等待设备时启动应用程序错误:AVD Nexus_5X_API_24 的模拟器进程被终止.
我附上了截图供您参考.
第一个错误的原因如下:
有两个模拟器:一个在 $SDK/tools
中,另一个在 $SDK/emulator
中.$SDK/tools
中的那个无法启动.
请将 $SDK/emulator
放在 $PATH 变量中的 $SDK/tools
之前,它应该可以解决问题.
I tried to launch application in emulator in android Studio in ubuntu 14.04 and it shows the following errors.
- Error shown while gradle build is in process:
/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
- Error appear after gradle build completed:
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:
There are two emulators: one in $SDK/tools
, another one in $SDK/emulator
.
The one in $SDK/tools
cannot start.
Please place $SDK/emulator
before $SDK/tools
in your $PATH variable, it should fix the problem.
这篇关于无法在 Android Studio 中启动模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!