Flutter doctor Visual Studio 2022 报错解决

Flutte 3.0 运行Flutter doctor时,Visual Studio 2022报错内容如下:

Exception: Bad UTF-8 encoding (U+FFFD; REPLACEMENT CHARACTER) found while decoding string: [
{
"instanceId": "fd040e54",
"installDate": "2022-03-26T13:34:42Z",
"installationName": "VisualStudio/16.11.11+32228.343",
"installationPath": "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community",
"installationVersion": "16.11.32228.343",
"productId": "Microsoft.VisualStudio.Product.Community",
"productPath": "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe",
"state": 4294967295,
"isComplete": true,
"isLaunchable": true,
"isPrerelease": false,
"isRebootRequired": false,
"displayName": "Visual Studio Community 2019",
"description": "IDE avan�ado, gratuito para estudantes, colaboradores de c�digo aberto e indiv�duos",
"channelId": "VisualStudio.16.Release",
"channelUri": "https://aka.ms/vs/16/release/channel",
"enginePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service",
"installedChannelUri": "https://aka.ms/vs/16/release/channel",
"releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.11#16.11.11",
"thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660909"... ...

通过如下操作可解决:
下载:https://github.com/microsoft/vswhere/releases       vswhere.exe 覆盖C:\Program Files (x86)\Microsoft Visual Studio\Installer 下的 vswhere.exe
可解决

你可能感兴趣的:(visual,studio,ide,visualstudio)