Android Studio 中的模拟器无法启动 [英] Emulator in Android Studio doesn't start

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

问题描述

我认为项目结构中的 SDK 引用有问题,但是当我单击运行并选择启动模拟器时,什么也没有出现.

I think it's a problem with the SDK reference in Project Structure, but when I click run and I choose Launch Emulator nothing appears.

推荐答案

我遇到了类似的问题... Android Emulator 无法打开.您需要找出原因...您可以从命令行运行模拟器.为此,您可以从运行"或AVD"Android Studio 控制台复制并粘贴命令行.例如:

I had a similar problem... Android Emulator doesn't open. You need to discover the reason of this... You could run your emulator from the command line. For this you could copy and paste your command line from "Run" or "AVD" Android Studio console. For example:

"{path}\android-sdk\tools\emulator.exe -avd Default_Nexus_5 -netspeedfull -netdelay none"

"{path}\android-sdk\tools\emulator.exe -avd Default_Nexus_5 -netspeed full -netdelay none"

当您从命令行终端启动它时,它会给您一条错误消息.就我而言,它对发现问题很有用:

When you launch it from a command line terminal, It give you a message with the error. In my case it was useful for discover the problem:

..\android-sdk\tools>模拟器:错误:x86 模拟目前需要硬件加速!请确保英特尔 HAXM 是正确安装和使用.CPU加速状态:HAX内核模块未安装!

..\android-sdk\tools>emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed!

  • 我需要使用工具激活 GPU 加速,以便在我的机器上启用它.我解决了它从 SDK Manager 安装工具 HAXM ...

    • I needed to activate GPU acceleration with a tool to enable it on my machine. I solved it installing from SDK Manager the tool HAXM...

      我遇到了另一个问题...例如,我为我的虚拟设备的皮肤路径分配了一个错误的 url...为了解决这个问题,我用我的平台 sdk 中的有效皮肤配置了我的虚拟设备:'{path}\android-sdk\platforms\android-{number}\skins{SCREEN_SIZE}'

      I had another problem... For example i had assigned a bad url for skin path of my virtual device... To solve it I have configured my virtual device with a valid skin from my platform sdk: '{path}\android-sdk\platforms\android-{number}\skins{SCREEN_SIZE}'

      现在可以正常打开了.

      对于较新版本的 Android SDK,模拟器路径应该是:

      For newer version of Android SDK, emulator path should be:

      "{path}\android-sdk\emulator\emulator.exe"

      "{path}\android-sdk\emulator\emulator.exe"

      参考(谢谢@CoolMind)

      reference (thank you @CoolMind)

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

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