简体   繁体   English

我似乎无法在Android Studio上运行我的AVD

[英]I can't seem to run my AVD on Android Studio

I'm getting an error while running my AVD on Android Studio. 在Android Studio上运行AVD时出现错误。 Below screenshot is the error. 屏幕截图下方是错误。

http://i.gyazo.com/cc1d9497b3f504196fe4f78fc6a2932e.png http://i.gyazo.com/cc1d9497b3f504196fe4f78fc6a2932e.png

After doing some Googling, I understand that the HAXM installer needs to be installed from the SDK Manager. 进行一些谷歌搜索后,我了解到需要从SDK Manager安装HAXM安装程序。 I did that (screenshot below) 我做到了(下面的截图)

http://i.gyazo.com/060b1108091d497da3e9e312ec7aedcc.png http://i.gyazo.com/060b1108091d497da3e9e312ec7aedcc.png

Doing some further research, it seems like I need to execute an .exe file from the Android Studio folder. 做一些进一步的研究,似乎我需要从Android Studio文件夹执行一个.exe文件。 However, the SDK folder seems to be missing for me. 但是,SDK文件夹似乎对我来说不见了。

I'm stuck in a loop here, I'm not sure what to do. 我在这里陷入了困境,我不确定该怎么办。 Is anyone able to assist with this? 有人能协助吗? I enable virtualization in my BIOS but it didn't do the trick. 我在BIOS中启用了虚拟化,但没有成功。 My processor is also supported according to the intel website. 英特尔网站还支持我的处理器。 Thank you. 谢谢。

Use Genymotion as your emulator. 使用Genymotion作为模拟器。 Fast and reliable. 快速可靠。 The solution below is from a possible duplicate question to yours. 下面的解决方案是从一个可能重复的问题到您的问题。


After you download it and make sure you run the setup located in: {SDK_FOLDER}\\extras\\intel\\Hardware_Accelerated_Execution_Manager\\intelhaxm.exe 下载它并确保运行位于以下位置的安装程序: {SDK_FOLDER}\\extras\\intel\\Hardware_Accelerated_Execution_Manager\\intelhaxm.exe

Note: in Android Studio, the command "intelhaxm.exe" has been changed to "intelhaxm-android.exe" 注意:在Android Studio中,命令"intelhaxm.exe"已更改为"intelhaxm-android.exe"

If you get the error "VT not supported" during the installation disable Hyper-V on windows features. 如果在安装过程中出现错误"VT not supported" ,请禁用Windows功能上的Hyper-V。 You can execute this command dism.exe /Online /Disable-Feature:Microsoft-Hyper-V. 您可以执行此命令dism.exe /Online /Disable-Feature:Microsoft-Hyper-V. You will also need "Virtualization Technology" to be enabled on your BIOS 您还需要在BIOS上启用"Virtualization Technology"

If that doesn't work try the ARM virtual device instead because your PC might not be intel HAXM compatible(mine wasn't). 如果这不起作用,请尝试使用ARM虚拟设备,因为您的PC可能与Intel HAXM不兼容(不是我的)。 There might be some other options too for other types of virtual devices you can use. 对于您可以使用的其他类型的虚拟设备,可能还有一些其他选项。 I recommend you try the ARM one if it doesn't work. 我建议您尝试一下ARM,如果它不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM