我剛剛在我的 Windows 電腦上安裝了顫振 SDK,然后我跑了flutter doctor,我得到了這個。
[?] Flutter (Channel stable, 3.0.3, on Microsoft Windows [版本 10.0.22000.739], locale zh-TW)
[?] Visual Studio - develop for Windows
? Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C " workload, including all of its default components
[?] VS Code (version 1.68.1)
[?] Connected device (1 available)
[?] HTTP Host Availability
! Doctor found issues in 1 category.
但是我已經在我的電腦上安裝了帶有“使用 C 進行桌面開發”的 Visual Studio 2022。
我試過的:
- 將頻道切換到主控
- 使用“使用 C 進行桌面開發”安裝 Visual Studio 2019
- 重新啟動電腦
- 使用“使用 C 進行桌面開發”重新安裝 Visual Studio 2022
uj5u.com熱心網友回復:
因為我是日本人,所以英語可能是錯誤的。
我和你的情況一樣。我通過更新 vswhere 解決了這個問題。
在我的環境中,以下路徑受到影響。C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
這是我用來參考的網址
https://github.com/microsoft/vswhere/releases https://github.com/flutter/flutter/issues/102451
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/496372.html
