gpt4 book ai didi

flutter - 在 "ext.flutter.driver"中找不到 "extensionRPCs"- 会出现什么问题?

转载 作者:行者123 更新时间:2023-12-04 17:32:07 24 4
gpt4 key购买 nike

当我开始运行 appium flutter 脚本时,出现此错误并等待 5 分钟。之后它继续执行。

[FlutterDriver] Attempt #1
[FlutterDriver] Connecting to Dart Observatory: ws://127.0.0.1:39420/uVLSKORHloI=/ws
[FlutterDriver] Connected to ws://127.0.0.1:39420/uVLSKORHloI=/ws
[FlutterDriver] "ext.flutter.driver" is not found in "extensionRPCs" ["ext.ui.window.scheduleFrame"]
[FlutterDriver] Cannot get Dart Isolate
[FlutterDriver] Error: "ext.flutter.driver" is not found in "extensionRPCs" ["ext.ui.window.scheduleFrame"]
[FlutterDriver] at Object.wrappedLogger.errorAndThrow (/usr/local/lib/node_modules/appium-flutter-driver/node_modules/appium-support/lib/logging.js:74:35)
[FlutterDriver] at Client.onOpenListener (/usr/local/lib/node_modules/appium-flutter-driver/lib/sessions/observatory.ts:91:17)
[FlutterDriver] at runMicrotasks (<anonymous>)
[FlutterDriver] at processTicksAndRejections (internal/process/task_queues.js:93:5)
[FlutterDriver] Waiting 300 seconds before trying...
(node:71547) UnhandledPromiseRejectionWarning: Error: "ext.flutter.driver" is not found in "extensionRPCs" ["ext.ui.window.scheduleFrame"]
at Object.wrappedLogger.errorAndThrow (/usr/local/lib/node_modules/appium-flutter-driver/node_modules/appium-support/lib/logging.js:74:35)
at Client.onOpenListener (/usr/local/lib/node_modules/appium-flutter-driver/lib/sessions/observatory.ts:91:17)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:71547) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)

会有什么问题?

最佳答案

所以基本上flutter应用程序需要启用检测自动化才能生效。
因此你需要添加 enableFlutterDriverExtension();在 main.dart 中创建调试应用程序。

只需在 runApp() 之前添加

关于flutter - 在 "ext.flutter.driver"中找不到 "extensionRPCs"- 会出现什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58729864/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com