flutter开发FormatException: Bad UTF-8 encoding 0xc3 (at offset 148)

错误信息:

Finished with error: FormatException: Bad UTF-8 encoding 0xc3 (at offset 148)

flutter开发FormatException: Bad UTF-8 encoding 0xc3 (at offset 148)_第1张图片

是文件编码问题。

1,打开 Android Studio 进入设置界面 Ctrl + Alt + S 或 File --> Settings 打开如下界面:


flutter开发FormatException: Bad UTF-8 encoding 0xc3 (at offset 148)_第2张图片

2,将 Project Encodeing 设置为 UTF-8 编码即可。


flutter开发FormatException: Bad UTF-8 encoding 0xc3 (at offset 148)_第3张图片

你可能感兴趣的:(flutter开发FormatException: Bad UTF-8 encoding 0xc3 (at offset 148))