Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

NoSuchMethodError: No top-level getter 'callbackDispatcher' declared error on Android release mode #614

Closed
mehayhe opened this issue Mar 7, 2022 · 0 comments

Comments

@mehayhe
Copy link
Contributor

mehayhe commented Mar 7, 2022

Getting the error below when running the app in Android release mode with the --split-debug-info enabled and compiled with flutter 2.10.2. Worked fine before when using flutter version 2.8 or lower. Might have something to do with the method name being minified by the --split-debug-info flag and something changed in flutter 2.10. The flag is needed for obfuscating the apk.

2022-03-07 10:43:54.215 846-1391/? E/flutter: [ERROR:flutter/shell/common/shell.cc(93)] Dart Unhandled Exception: NoSuchMethodError: No top-level getter 'callbackDispatcher' declared.
    Receiver: top-level
    Tried calling: callbackDispatcher, stack trace: Warning: This VM has been configured to produce stack traces that violate the Dart standard.
    *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    pid: 846, tid: 1391, name Unknown
    build_id: 'aed21ea86cdb00a11963eb79a5989607'
    isolate_dso_base: 7006a84000, vm_dso_base: 7006a84000
    isolate_instructions: 7006db0d70, vm_instructions: 7006dac000
        #00 abs 0000007006dd733f virt 000000000035333f _kDartIsolateSnapshotInstructions+0x265cf
2022-03-07 10:43:54.215 846-1391/? E/flutter: [ERROR:flutter/runtime/dart_isolate.cc(681)] Could not resolve main entrypoint function.
2022-03-07 10:43:54.215 846-1391/? E/flutter: [ERROR:flutter/runtime/dart_isolate.cc(165)] Could not run the run main Dart entrypoint.
2022-03-07 10:43:54.217 846-1391/? E/flutter: [ERROR:flutter/runtime/runtime_controller.cc(381)] Could not create root isolate.
2022-03-07 10:43:54.217 846-1391/? E/flutter: [ERROR:flutter/shell/common/shell.cc(580)] Could not launch engine with configuration.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant