VMServiceFlutterDriver: Connecting to Flutter application at http://127.0.0.1:56932/p1SKnDpyL2g=/
VMServiceFlutterDriver: Isolate found with number: 2750662995495631
VMServiceFlutterDriver: Isolate is paused at start.
VMServiceFlutterDriver: Attempting to resume isolate
E/flutter (26931): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Binding has not yet been initialized.
E/flutter (26931): The "instance" getter on the WidgetsBinding binding mixin is only available once that binding has been initialized.
E/flutter (26931): Typically, this is done by calling "WidgetsFlutterBinding.ensureInitialized()" or "runApp()" (the latter calls the former). Typically this call is done in the "void main()" method. The
"ensureInitialized" method is idempotent; calling it multiple times is not harmful. After calling that method, the "instance" getter will return the binding.
E/flutter (26931): In a test, one can call "TestWidgetsFlutterBinding.ensureInitialized()" as the first line in the test's "main()" method to initialize the binding.
E/flutter (26931): If WidgetsBinding is a custom binding mixin, there must also be a custom binding class, like WidgetsFlutterBinding, but that mixes in the selected binding, and that is the class that must be
constructed before using the "instance" getter.
E/flutter (26931): #0 BindingBase.checkInstance. (package:flutter/src/foundation/binding.dart:284:9)
E/flutter (26931): #1 BindingBase.checkInstance (package:flutter/src/foundation/binding.dart:366:6)
E/flutter (26931): #2 WidgetsBinding.instance (package:flutter/src/widgets/binding.dart:273:53)
E/flutter (26931): #3 IntegrationTestHelperBinding.ensureInitialized (package:integration_test_helper/integration_test_helper.dart:21:24)
E/flutter (26931): #4 main (file:///Users/xiaoyezi/AndroidStudioProjects/integration_test_helper/example/integration_test/app_features.dart:15:48)
E/flutter (26931): #5 _runMain. (dart:ui/hooks.dart:134:23)
E/flutter (26931): #6 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:297:19)
E/flutter (26931): #7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
E/flutter (26931):
I/example.exampl(26931): ProcessProfilingInfo new_methods=984 is saved saved_to_disk=1 resolve_classes_delay=8000
VMServiceFlutterDriver: Flutter Driver extension is taking a long time to become available. Ensure your test app (often "lib/main.dart") imports "package:flutter_driver/driver_extension.dart" and calls enableFlutterDriverExtension() as the first call in main().
When I run the sample, it prompts an error like this, I try to run it, but it still fails
When I run the sample, it prompts an error like this, I try to run it, but it still fails