Error connecting to the service protocol failed to connect to错误

简介: Error connecting to the service protocol failed to connect to错误

问题描述

使用oppo手机debug Flutter Android应用时报错。报错内容如下:

Error connecting to the service protocol: failed to connect to http://127.0.0.1:57455/toyCz5p8HME=/


导致用OPP R9 手机调试flutter APP时,不能热加载;报错如下图:

问题原因

PC和手机未处于同一个局域网内

解决方法

将手机和PC连接同一个网络

处于同一网络后报错消失

Running Gradle task 'assembleDebug'...
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Debug service listening on ws://127.0.0.1:62952/fPjCh0ggFxA=/ws
Syncing files to device OPPO R9tm...
I/SurfaceView( 4300): Punch a hole(dispatchDraw), w = 1080, h = 1920, this = io.flutter.embedding.android.FlutterSurfaceView{33c2fbae V.E..... ........ 0,0-1080,1920}
W/MALI    ( 4300): glDrawArrays:714: [MALI] glDrawArrays takes more than 5ms here. Total elapse time(us): 8505
D/OpenGLRenderer( 4300): ProgramCache save to disk, size = 2

dc1150093399430ea482b630c664fbc9.png

目录
打赏
0
0
0
0
13
分享
相关文章
nacos报错 Server check fail, please check server 127.0.0.1 ,port 9848 is available , error ={}
在配置文件中指定的Nacos服务器地址未被项目使用,程序仍尝试连接到127.0.0.1。开发者寻求帮助排查问题,已花费多天未果。
connect() failed (113: No route to host) while connecting to upstream
connect() failed (113: No route to host) while connecting to upstream
244 0
|
8月前
Could not connect to ‘x.x.x.x ‘(port 22): Connection failed.Failed to start sshd.service:
Could not connect to ‘x.x.x.x ‘(port 22): Connection failed.Failed to start sshd.service:
129 0
Could not establish connection to “xx.xx.xx.xx“:The VS Code Server faild to start.【重要解决方案】
Could not establish connection to “xx.xx.xx.xx“:The VS Code Server faild to start.【重要解决方案】
333 0
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
1640 0
错误集--NFS报错clnt_create: RPC: Port mapper failure - Unable to receive: errno 113 (No route to host)
Error from server error dialing backend remote error tls internal error
Error from server error dialing backend remote error tls internal error
145 0
成功解决http error 503.the service is unavailable错误
成功解决http error 503.the service is unavailable错误
3438 0

热门文章

最新文章