解决flutter的FormatException: Bad UTF-8 encoding的问题

版权声明:独学而无友,则孤陋寡闻。q群582951247 https://blog.csdn.net/mp624183768/article/details/84952275

开发flutter的时候,每一次点击启动按键,就很容易发生Finished with error: FormatException: Bad UTF-8 encoding 0xb4的问题.该死的是,多运行几次它又没有了.今天我就要彻底解决它.

问题:Running 'gradlew assembleDebug'...
Finished with error: FormatException: Bad UTF-8 encoding 0xb4 (at offset 125)

步骤一.先确定你的代码没有问题,如果配置无问题,但是代码有问题,也是同样会出现这个错误.

步骤二,android studio修改设置. 具体如下 file - other settings - default settings -找到project encoding,改为utf-8 .    get,进行继续去开发吧.


猜你喜欢

转载自blog.csdn.net/mp624183768/article/details/84952275