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

查看:91
本文介绍了无法在 Android Studio 中启动模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  1. 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':没有那个文件或目录

  1. 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.

  1. 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

  1. 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屋!

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