Win11 中启用WSL(Ubuntu22)下载Android源码和使用SourceInsight阅读代码
1、Win11 中启用WSL(Ubuntu22)参考 在windows11配置WSL_win11 wsl-CSDN博客
2、下载Android源码 参考 AOSP | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror 或者 Windows平台下载AOSP源码(使用中科大镜像) - 知乎 (zhihu.com)
3、下载安装si Source Insight 4.0.093 安装破解详细图文教程_其它综合_脚本之家 (jb51.net)
4、配置samba
如下(虽然win11我的电脑显示wsl下的linux目录,但是sourceInsight无法访问,只能能通过网络映射网盘共享的方式)
下面配置samba(安装提示错误时先执行sudo apt-get update)
sudo apt-get update
sudo apt-get install samba
参考如下:
wsl共享文件创建及使用_wsl 传文件-CSDN博客
5、win11 映射网络ubuntu的共享目录 先查看ubuntu的ip (172.20.218.109)
网络共享目录文件夹子
可以看到共享的目录(我这里的目录叫work,取决于samba,配置文件配置啥就映射啥)
最后记住用si新建项目时候si的工程文件必须也要放在这个映射的网盘中,否则无法正常add添加网盘中的其他项目文件
6、解决# Windows11 WSL中Llinux报错:System has not been booted with systemd as init system (PID 1). Can‘t operate Windows11 WSL中Llinux报错:System has not been booted with systemd as init system (PID 1). Can‘t operate-CSDN博客