本文提到与模拟器进行冲突时候应该如何解决(本机中为夜神模拟器)
在Android Studio中运行安卓模拟器的时候,需要禁用Hypver-V并重启。 因为Goolge安卓模拟器使用了Intel CPU的HAXM (Hardware Accelerated Execution Manager),但Hyper-V使用了CPU虚拟化扩展,不知道为什么,二者不能同时存在,在PC启动时只能选择其中的一个。
所以在使用window内置的Linux子系统和模拟器只能选择一个
首先按照通用的安装步骤
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux,系统输出:Path :
Online : True
RestartNeeded : False
输入命令bash,按提示输入y进行安装
以上都是正常的安装步骤,如果过程中要是出现其他问题,可以试试以下方法
不支持该请求。 Press any key to continue...netsh winhttp reset proxy
netsh winhttp reset tracing
netsh winhttp import proxy ie
netsh winsock reset
netsh winsock reset catalog
netsh int ip reset reset.log
ipconfig /flushdns
或
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart[下载并安装](https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi)
win10 msi安装方法:管理员命令提示符(CMD)下输入:msiexec /package “你的安装MSI文件的全路径”.wsl --set-default-version 2[参考文章](https://learn.microsoft.com/zh-cn/windows/wsl/install-manual#step-4---download-the-linux-kernel-update-package)
Installing, this may take a few minutes...
Installation Failed!
Error: 0x8007019e
Press any key to continue...
1.win+x,选择Windows PowerShell(管理员)
2.输入:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3.回车,输入Y,重启!
4.重新打开已经安装的子系统,等几分钟,输入账户和密码。

下一篇:Class 加载的过程