am15h / object_detection_flutter

Truly realtime object-detection in flutter
188 stars 113 forks source link

Execution failed for task ':app:compileFlutterBuildDebug'. #19

Closed piggychu0w0 closed 3 years ago

piggychu0w0 commented 3 years ago

I download the project and process it, but it shows wrong message. `Launching lib\main.dart on sdk gphone x86 in debug mode... /C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/tflite_flutter-0.5.0/lib/src/delegates/gpu_delegate.dart:58:10: Error: The getter 'addressOf' isn't defined for the class 'TfLiteGpuDelegateOptionsV2'.

Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. GUID.fromString(IID_IFileSaveDialog).addressOf, ^^^^^^^^^ /C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IKnownFolderManager.dart:164:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.

Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. final hr = CoCreateInstance(GUID.fromString(CLSID_WbemLocator).addressOf, ^^^^^^^^^ /C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/generated/IWbemLocator.dart:85:64: Error: The getter 'addressOf' isn't defined for the class 'GUID'.

/C:/Users/USER/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and instantiated subtype of 'NativeType'. final int totalSize = count * sizeOf(); ^

FAILURE: Build failed with an exception.

BUILD FAILED in 3m 9s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm) ` I had tried the way in here and here. But it doesn't work, is there any suggestion for me to solve the problem?

Thanks a lot for help!!

undcloud commented 2 years ago

I meet the same issue, how to solve it ?