【问题标题】:Error connecting to the service protocol: failed to connect to http://127.0.0.1:41209/y-F2GYjV9_Y=/连接服务协议出错:无法连接到http://127.0.0.1:41209/y-F2GYjV9_Y=/
【发布时间】:2020-09-02 05:12:36
【问题描述】:

每当我尝试flutter run 时,我都会收到此错误:

amein@amein:~/Documents/taywan$ flutter run 
Launching lib/main.dart on SM A107F in debug mode... 
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 43.3s ✓ 
Built build/app/outputs/apk/debug/app-debug.apk. 
Installing build/app/outputs/apk/app.apk... 26.2s 
Error connecting to the service protocol: 
 failed to connect to http://127.0.0.1:41209/y-F2GYjV9_Y=/

【问题讨论】:

标签: linux ubuntu flutter dart


【解决方案1】:

几分钟前发生在我身上,我通过以下两个步骤解决了它:

  1. $flutter clean

  2. $flutter 升级

尝试在 IDE 的命令行上执行这两个命令,无论是 还是 。

【讨论】:

    猜你喜欢
    • 2021-10-24
    • 2020-09-14
    • 1970-01-01
    • 2023-03-25
    • 1970-01-01
    • 2020-06-06
    • 2019-09-29
    • 2015-02-08
    • 2018-10-23
    相关资源
    最近更新 更多