Closed mterenzi closed 1 year ago
I also faced this same issue today. I am using isolate_handler which depends on this plugin. The isolate creation fails in release mode:
E/flutter ( 6127): [ERROR:flutter/shell/common/shell.cc(93)] Dart Error: Dart_LookupLibrary: library 'package:flutter_isolate/flutter_isolate.dart' not found.
E/flutter ( 6127): [ERROR:flutter/runtime/dart_isolate.cc(668)] Could not resolve main entrypoint function.
E/flutter ( 6127): [ERROR:flutter/runtime/dart_isolate.cc(167)] Could not run the run main Dart entrypoint.
E/flutter ( 6127): [ERROR:flutter/runtime/runtime_controller.cc(385)] Could not create root isolate.
E/flutter ( 6127): [ERROR:flutter/shell/common/shell.cc(604)] Could not launch engine with configuration.
@Thesmader I am also using that package due to its ability to make platform dependent calls. Are you also experiencing this on iOS by any chance?
I also faced this same issue today. I am using isolate_handler which depends on this plugin. The isolate creation fails in release mode:
E/flutter ( 6127): [ERROR:flutter/shell/common/shell.cc(93)] Dart Error: Dart_LookupLibrary: library 'package:flutter_isolate/flutter_isolate.dart' not found. E/flutter ( 6127): [ERROR:flutter/runtime/dart_isolate.cc(668)] Could not resolve main entrypoint function. E/flutter ( 6127): [ERROR:flutter/runtime/dart_isolate.cc(167)] Could not run the run main Dart entrypoint. E/flutter ( 6127): [ERROR:flutter/runtime/runtime_controller.cc(385)] Could not create root isolate. E/flutter ( 6127): [ERROR:flutter/shell/common/shell.cc(604)] Could not launch engine with configuration.
I also got the same challenge with the builds from my pipeline which use the latest flutter version. A quick fix for me was to downgrade to flutter version 3.0.5.
This PR should fix it. https://github.com/rmawatson/flutter_isolate/pull/118
PR fixed the issue for me. Will close issue when officially merged.
Pull request has been merged. Waiting on pub version update and example documentation update to refrence the new pragma decorator requirement.
Pub version released. Closing issue,
I just upgraded my flutter SDK from version 3.0.5 to 3.3.0 this morning and now I am unable to call isolates when building in release mode for Android. This behavior does not occur in debug builds. I have not tested on iOS.
Error:
Any advice on how to fix the binding would be appreciated.
Flutter Doctor: