【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol

文章目录

一、 报错信息

二、 解决方案

1、 解决方案一

2、 解决方案二 ( 推荐 )





一、 报错信息


在 Android Studio 中运行 Flutter 程序 , 点击  按钮运行程序 , 报如下错误 :


【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol


Performing hot restart...
Syncing files to device Pixel 2...
Error -32000 received from application: There are no running service protocol handlers.
Restarted application in 1,106ms.




【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol




二、 解决方案




1、 解决方案一


在 Android Studio 中的 Flutter 工程中 , 的 " Terminal " 命令行终端处先后执行下面两条命令 :


① 执行第一条命令 :


flutter clean


② 执行第二条命令 :


flutter run


执行效果 :


Microsoft Windows [版本 10.0.18363.1139]
(c) 2019 Microsoft Corporation。保留所有权利。
D:\002_Project\002_Android_Learn\flutter_app_hello>flutter clean
Deleting build...                                                  729ms
Deleting .dart_tool...                                               6ms
D:\002_Project\002_Android_Learn\flutter_app_hello>flutter run
Launching lib\main.dart on Pixel 2 in debug mode...
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        52.2s
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...                        14.1s


执行截图 :


【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol




2、 解决方案二 ( 推荐 )


运行一次 Flutter 应用后 , 下图中的三角形右下角有个点 , 说明当前有 Flutter 应用正在运行 , 此时再次运行 , 就会弹出上述 " Error -32000 received … " 错误 ;

【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol



手机中把当前的应用进程杀掉就可以 , 退出应用 ;


此时三角形右侧的点消失 , 再次运行 , 就可以成功运行了 ;


【错误记录】Flutter 运行报错 Error -32000 received from application: There are no running service protocol

上一篇:restlet client报错 no response,Is the certificate valid? Click here to check. Tomcat Note: further occurrences of HTTP header parsing errors will be lo


下一篇:IDEA快捷键恢复ctrl+z撤销掉的内容