chuvanhoang888 / smart_usb

Smart Usb
BSD 3-Clause "New" or "Revised" License
4 stars 9 forks source link

LateError (LateInitializationError: Field '_instance@174081202' has not been initialized.) #3

Open likeablegeek opened 9 months ago

likeablegeek commented 9 months ago

Hi ...

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

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

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

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

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

mayuriruparel commented 4 months ago

Did you find solution?