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

相关文章
|
1月前
|
应用服务中间件 网络安全 Apache
403 Forbidden 500 Internal Server Error
403 Forbidden 500 Internal Server Error
|
4月前
|
应用服务中间件 nginx Docker
connect() failed (113: No route to host) while connecting to upstream
connect() failed (113: No route to host) while connecting to upstream
149 0
|
5月前
|
Linux 数据安全/隐私保护
Could not connect to ‘121.37.92.110‘ (port 22): Connection failed.
Could not connect to ‘121.37.92.110‘ (port 22): Connection failed.
|
5月前
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:
|
Java 应用服务中间件 PHP
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
617 0
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
|
网络安全
错误集--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)
1531 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
115 0
|
Kubernetes 网络协议 容器
kubectl命令报错:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host
kubectl命令报错:Unable to connect to the server: dial tcp XXX:16443: connect: no route to host
971 0
|
Java 应用服务中间件
Error:Unable to connect to the localhost:1099
Error:Unable to connect to the localhost:1099
237 0