安装安卓模拟器后 wsl 闪退问题解决
电脑上有安卓模拟器,部分模拟器可能会误删除(就是有意的)子系统的文件。
VMware开启的虚拟机、安卓模拟器与wsl2、Docker Desktop for Windows不能共同使用,有兼容性问题
暂时找到的解决方案如下:
用完VMware或者模拟器,开始用wsl2
启用 hyper-v
bcdedit /set hypervisorlaunchtype auto
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
重启
wsl --shutdown
wsl -d Ubuntu
用完wsl2,开始用VMware
禁用 hyper-v
bcdedit /set hypervisorlaunchtype off
扩展:wsl -t 和 wsl -d的区别
参考资料:
https://www.zhihu.com/question/2003974069536718921/answer/2004184745723069976

浙公网安备 33010602011771号