【坑】Flutter真机调试失败

Android Studio 和 VS CODE 都遇到下面的错误:

IOS真机调试失败,无法热重启

Error connecting to the service protocol: HttpException: , uri =
http://127.0.0.1:1025/7q74-zrON0Y=/ws

或者真机安装的时候卡住,但实际安装成功了,也无法进入热重启:

Checking for advertised Dart observatories…

GOOGLE上的解决办法:

错误可能性1,可能设置了代理,需要修改代理

验证办法:

NO_PROXY=localhost,127.0.0.1; flutter run --start-paused
如果能正常连接热启动,则需要在.bash_profile中添加:
NO_PROXY=localhost,127.0.0.1; 

参考连接:https://github.com/flutter/flutter/issues/25112

错误可能性2,IOS调试授权过期,需要重新授权

验证办法:

换一台手机安装试试,如果可以,再用原手机测试,就重新授权(输入手机密码)

我遇到的情况是第二种,已经解决了。

其他原因:

https://blog.csdn.net/qq_39099317/article/details/88101985

转载随意~:陶醉seo » 【坑】Flutter真机调试失败

赞 (22)
分享到:更多 ()