解决Unable to install extension ‘dart-code.flutter‘ as it is not compatible with VS Code ‘1.64.1’问题

Unable to install extension 'dart-code.flutter' as it is not compatible with VS Code 问题实际是引入的插件里的vscode版本与你正在使用的编辑器版本不同导致。

解决方法:

1:首先把插件文件后缀改为zip。

2:然后进入插件.zip 找到里面的package.json文件。

3: 使用ctrl+f  复制内容  "vscode":   对package.json文件进行搜索 找到对应的版本号

例如:

"engines": {
		"vscode": "^1.64.1"
	},

4:把版本号改为你目前编译器的版本号。

5:最后把后缀名改回去  重新添加插件即可解决问题。

猜你喜欢

转载自blog.csdn.net/qq_65032048/article/details/137560398