Google Flutter build winodws app error:Bad UTF-8 encoding...

 最近在研究google flutter這個跨平台的程式語言,已成功建置andriod與web,今天來測試windows的部份。

我已經安裝好vistual studio 2022 Community版,接著執行flutter doctor來檢查,結果出現下列的錯誤:Bad UTF-8 encoding found while decoding string


在這裡有提到解決的方案:
https://github.com/flutter/flutter/issues/102451#issuecomment-1124651845

依說明到 https://github.com/microsoft/vswhere/releases 下載vswhere.exe,並把它取代原本的檔案。
vswhere.exe路徑:C:\Program Files (x86)\Microsoft Visual Studio\Installer

完成後,重新執行flutter doctor檢查,這次檢查就成功了,接著再執行flutter build windows來建置也沒有問題了。



Windows 11安裝時跳過網路連線