jiusanzhou / flutter_floatwing

A Flutter plugin that makes it easier to make floating/overlay window for Android with pure Flutter. 一个可以用纯粹的Flutter来开发Android浮动窗口的插件。
Other
169 stars 28 forks source link

In release mode, an error occurs while using `non-main` entry #7

Open cnyunguo opened 2 years ago

cnyunguo commented 2 years ago

In release mode, an error occurs,

E/flutter (17069): [ERROR:flutter/shell/common/shell.cc(93)] Dart Unhandled Exception: NoSuchMethodError: No top-level getter 'androidWindow' declared.
E/flutter (17069): Receiver: top-level
E/flutter (17069): Tried calling: androidWindow, stack trace: #0 NoSuchMethodError._throwNew (dart:core-patch/errors_patch.dart:222)
E/flutter (17069):
E/flutter (17069): [ERROR:flutter/runtime/dart_isolate.cc(681)] Could not resolve main entrypoint function.
E/flutter (17069): [ERROR:flutter/runtime/dart_isolate.cc(165)] Could not run the run main Dart entrypoint.
E/flutter (17069): [ERROR:flutter/runtime/runtime_controller.cc(381)] Could not create root isolate.
E/flutter (17069): [ERROR:flutter/shell/common/shell.cc(580)] Could not launch engine with configuration.
jiusanzhou commented 2 years ago

Thank you for your reporting, I will check out this in few days.

abellee commented 2 years ago

me 也是

jiusanzhou commented 2 years ago

hi 是三种方式中的哪一种呢。可以贴一下代码吗

abellee commented 2 years ago

hi 是三种方式中的哪一种呢。可以贴一下代码吗

就entry-point的static function不写main里 就会报错