quick.flutter icon indicating copy to clipboard operation
quick.flutter copied to clipboard

LateError (LateInitializationError: Field '_instance@166265524' has not been initialized.)

Open likeablegeek opened this issue 2 years ago • 2 comments

Hi ...

I'm trying to use quick_usb to build a MacOS app. I am trying to follow this example code you provide:

await QuickUsb.init();
// ...
var deviceList = await QuickUsb.getDeviceList();
// ...
await QuickUsb.exit();

However, on the first line (await QuickUsb.init();) I get the following exception thrown:

LateError (LateInitializationError: Field '_instance@166265524' has not been initialized.)

Are there suggestions on how to resolve and/or debug this issue?

likeablegeek avatar Dec 21 '23 15:12 likeablegeek

I get the same error on Windows when using 0.4.0. It didn't happen with version 0.3.1.

gtminch avatar Apr 04 '24 05:04 gtminch