• 欢迎访问V2ray教程网,这里分享各种V2ray教程资源,为您答题解惑。
  • 任何疑惑,请注册账号后,登录,发布留言,我们会及时回复您。
  • 欢迎加入V2ray电报群,V2ray教程

could not switch to this profile! Clash for Windows出现该错误如何修复?

V2ay教程 Teddy 4年前 (2020-08-12) 9108次浏览 1个评论 扫描二维码

【友情提示】请勿安装 360 安全卫士,会疯狂自动删除 clash 的配置文件!!!

Clash for Windows 出现该 could not switch to this profile!错误如何修复?看图:

一开始是这个错误:

could not switch to this profile! Clash for Windows出现该错误如何修复?

上面提示的这个文件路径,意思是:基础配置文件为空!

然后就是:

could not switch to this profile! Clash for Windows出现该错误如何修复?

或者:

could not switch to this profile! Clash for Windows出现该错误如何修复?

 

造成这个原因是:将基础配置文件删除了,就是下面这个图这个文件:

could not switch to this profile! Clash for Windows出现该错误如何修复?

官方解释加载过程

CFW 启动流程如下:

  1. 使用基础配置文件 config.yaml 启动 Clash 核心
  2. 根据用户上次使用的配置文件(Profiles/xxxxx.yml)进行恢复
  3. 恢复用户上次操作的策略情况

解读

步骤 1 完成后,Clash 会按照 config.yaml 设置启动

步骤 2 完成后,用户配置文件里的proxies/proxy-providers/proxy-groups/rule-providers/rules/dns这几个字段的内容会被替换到 Clash 里面,除了上面值几个字段,其他的内容均不会替换(这就是 Profiles 里配置文件可以不完整的原因)

因此,即使删除整个软件文件夹,重新解压也无济于事,其默认配置文件并非位于软件包中,而是在这个位置:

could not switch to this profile! Clash for Windows出现该错误如何修复?

 

万一删除了,如何修复?

1、删除掉之前的配置文件:

could not switch to this profile! Clash for Windows出现该错误如何修复?

 

2、重新解压软件包:

3、启动软件,让软件自动配置基础文件:

could not switch to this profile! Clash for Windows出现该错误如何修复?

could not switch to this profile! Clash for Windows出现该错误如何修复?

 

剩下的就是愉快地玩耍了!!!


V2ray教程网 版权所有丨如未注明 , 均为原创丨转载请注明原文链接:could not switch to this profile! Clash for Windows出现该错误如何修复?
喜欢 (0)

您必须 登录 才能发表评论!

(1)个小伙伴在吐槽