Reputation: 187
My app was working excellent before last upgradate of flutter but I dont understand that why I have those error after I upgraded flutter, please help me how can I handle with discusting issue..
Invalid depfile: C:\Users\yagiz\AndroidStudioProjects\lezzet_kitabi.dart_tool\flutter_build\3d9c3474602422658f145de48f68dac2\kernel_snapshot.d Invalid depfile: C:\Users\yagiz\AndroidStudioProjects\lezzet_kitabi.dart_tool\flutter_build\3d9c3474602422658f145de48f68dac2\kernel_snapshot.d /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1111:7: Error: Struct 'ENUMLOGFONTEX' is empty. Empty structs are undefined behavior. class ENUMLOGFONTEX extends Struct { ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2835:7: Error: Struct 'BLUETOOTH_PIN_INFO' is empty. Empty structs are undefined behavior. class BLUETOOTH_PIN_INFO extends Struct { ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2960:7: Error: Struct 'EXCEPINFO' is empty. Empty structs are undefined behavior. class EXCEPINFO extends Struct {} ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2966:7: Error: Struct 'PROPERTYKEY' is empty. Empty structs are undefined behavior. class PROPERTYKEY extends Struct {} ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2973:7: Error: Struct 'PROPVARIANT' is empty. Empty structs are undefined behavior. class PROPVARIANT extends Struct {} ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2978:7: Error: Struct 'SAFEARRAY' is empty. Empty structs are undefined behavior. class SAFEARRAY extends Struct {} ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2985:7: Error: Struct 'CLSID' is empty. Empty structs are undefined behavior. class CLSID extends Struct {} ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2992:7: Error: Struct 'STATSTG' is empty. Empty structs are undefined behavior. class STATSTG extends Struct {} ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2999:7: Error: Struct 'NLM_SIMULATED_PROFILE_INFO' is empty. Empty structs are undefined behavior. class NLM_SIMULATED_PROFILE_INFO extends Struct {} ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs are undefined behavior. class Utf8 extends Struct { ^ /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs are undefined behavior. class Utf16 extends Struct { ^ /C:/src/flutter/.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.
Where: Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BU�LD FAILED in 12s Exception: Gradle task assembleDebug failed with exit code 1
Upvotes: 0
Views: 1105
Reputation: 540
I faced the same issue on dev channel. I solved the issue without downgrade. just add this dependency:
ffi: ^1.0.0
Upvotes: 2
Reputation: 72
Removed the packeges dependencies
in pubspec.yaml
, run flutter packages get
After that add the package to dependencies
again and running flutter packages get
This is worked for me
Upvotes: 1