I have an empty project
just elevatedbutton in center with onpressed() {
await SmartUsb.init();
var deviceList = await SmartUsb.getDeviceList();
for (var device in deviceList) {
print(device.identifier);
print(device.toMap());
print('-----------------------');
}
await SmartUsb.exit();
}
when run build fails with the following message
Launching lib\main.dart on Windows in debug mode...
CMake Error at flutter/ephemeral/.plugin_symlinks/smart_usb/windows/CMakeLists.txt:9 (add_library):
Cannot find source file:
I have an empty project just elevatedbutton in center with onpressed() {
}
when run build fails with the following message
Launching lib\main.dart on Windows in debug mode... CMake Error at flutter/ephemeral/.plugin_symlinks/smart_usb/windows/CMakeLists.txt:9 (add_library): Cannot find source file:
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
CMake Error at flutter/ephemeral/.plugin_symlinks/smart_usb/windows/CMakeLists.txt:9 (add_library): No SOURCES given to target: smart_usb_plugin
CMake Generate step failed. Build files cannot be regenerated correctly. Exception: Unable to generate build files
Exited (1).