Ошибка при запуске проекта flutter после обновления flutter 2.2.1

#flutter #dart

Вопрос:

/D:/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4 3/lib/src/path_provider_windows_real.dart:126:25: Ошибка: Получатель ‘AddressOf’ не определен для класса ‘GUID’.

  • ‘GUID’ взят из ‘пакета:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart»). Попробуйте исправить имя на имя существующего получателя или определить получатель или поле с именем ‘AddressOf’. knownFolderID.AddressOf, KF_FLAG_DEFAULT, NULL, pathPtrPtr); ^^^^^^^^^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:1067:7: Ошибка: Получатель ‘AddressOf’ не определен для класса ‘LOGFONT’.
  • ‘LOGFONT’ взят из ‘пакета:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart»). Попробуйте исправить имя на имя существующего получателя или определить получатель или поле с именем ‘AddressOf’. AddressOf.cast().ElementAt(28).cast(); ^^^^^^^^^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:1112:29: Ошибка: Получатель ‘AddressOf’ не определен для класса ‘ENUMLOGFONTEX’.
  • «ENUMLOGFONTEX» взят из «пакета:win32/src/structs.dart» («/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart»). Попробуйте исправить имя на имя существующего получателя или определить получатель или поле с именем «Адрес». LOGFONT получить elfLogFont => Адрес. cast().ref; ^^^^^^^^^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:1114:29: Ошибка: Получатель ‘AddressOf’ не определен для класса ‘ENUMLOGFONTEX’.
  • «ENUMLOGFONTEX» взят из «пакета:win32/src/structs.dart» («/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart»). Попробуйте исправить имя на имя существующего получателя или определить получатель или поле с именем «Адрес». Строка get elfFullName => Адрес ^^^^^^^^^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:1120:26: Ошибка: Получатель ‘AddressOf’ не определен для класса ‘ENUMLOGFONTEX’.
  • «ENUMLOGFONTEX» взят из «пакета:win32/src/structs.dart» («/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart»). Попробуйте исправить имя на имя существующего получателя или определить получатель или поле с именем «Адрес». Строка get elfStyle => Адрес ^^^^^^^^^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:1126:27: Ошибка: Получатель ‘AddressOf’ не определен для класса ‘ENUMLOGFONTEX’.
  • ‘ENUMLOGFONTEX’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    String get elfScript => addressOf
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2688:7: Error: The getter ‘addressOf’ isn’t defined for the class ‘OSVERSIONINFO’.
  • ‘OSVERSIONINFO’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    addressOf.cast().elementAt(20).cast().unpackString(128);
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2699:11: Error: The getter ‘addressOf’ isn’t defined for the class ‘OSVERSIONINFO’.
  • ‘OSVERSIONINFO’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    ..addressOf.cast().elementAt(20).value = 0;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2744:24: Error: The getter ‘addressOf’ isn’t defined for the class ‘BLUETOOTH_DEVICE_INFO’.
  • ‘BLUETOOTH_DEVICE_INFO’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    String get szName => addressOf
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2837:7: Error: The getter ‘addressOf’ isn’t defined for the class ‘BLUETOOTH_PIN_INFO’.
  • ‘BLUETOOTH_PIN_INFO’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    addressOf.cast().elementAt(BTH_MAX_PIN_SIZE).value;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2840:5: Error: The getter ‘addressOf’ isn’t defined for the class ‘BLUETOOTH_PIN_INFO’.
  • ‘BLUETOOTH_PIN_INFO’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    addressOf.cast().elementAt(BTH_MAX_PIN_SIZE).value =
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2845:28: Error: The getter ‘addressOf’ isn’t defined for the class ‘BLUETOOTH_PIN_INFO’.
  • ‘BLUETOOTH_PIN_INFO’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    String.fromCharCodes(addressOf.cast().asTypedList(pinLength));
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2853:7: Error: The getter ‘addressOf’ isn’t defined for the class ‘BLUETOOTH_PIN_INFO’.
  • ‘BLUETOOTH_PIN_INFO’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    addressOf.cast().elementAt(idx).value = pinData[idx];
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart:38:31: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final iid = GUID.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart:56:33: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final clsid = GUID.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/winrt/winrt_helpers.dart:86:40: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final riidCalendar = GUID.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IDesktopWallpaper.dart:197:38: Error: The getter ‘addressOf’ isn’t defined for the class ‘COMObject’.
  • ‘COMObject’ is from ‘package:win32/src/com/combase.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final ptr = COMObject.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IDesktopWallpaper.dart:200:49: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(CLSID_DesktopWallpaper).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IDesktopWallpaper.dart:203:48: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(IID_IDesktopWallpaper).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IFileOpenDialog.dart:58:38: Error: The getter ‘addressOf’ isn’t defined for the class ‘COMObject’.
  • ‘COMObject’ is from ‘package:win32/src/com/combase.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final ptr = COMObject.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IFileOpenDialog.dart:61:47: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(CLSID_FileOpenDialog).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IFileOpenDialog.dart:64:46: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(IID_IFileOpenDialog).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IFileSaveDialog.dart:99:38: Error: The getter ‘addressOf’ isn’t defined for the class ‘COMObject’.
  • ‘COMObject’ is from ‘package:win32/src/com/combase.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final ptr = COMObject.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IFileSaveDialog.dart:102:47: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(CLSID_FileSaveDialog).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IFileSaveDialog.dart:105:46: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(IID_IFileSaveDialog).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IKnownFolderManager.dart:164:38: Error: The getter ‘addressOf’ isn’t defined for the class ‘COMObject’.
  • ‘COMObject’ is from ‘package:win32/src/com/combase.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final ptr = COMObject.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IKnownFolderManager.dart:167:51: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(CLSID_KnownFolderManager).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IKnownFolderManager.dart:170:50: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(IID_IKnownFolderManager).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/INetworkListManager.dart:128:38: Error: The getter ‘addressOf’ isn’t defined for the class ‘COMObject’.
  • ‘COMObject’ is from ‘package:win32/src/com/combase.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final ptr = COMObject.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/INetworkListManager.dart:131:51: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(CLSID_NetworkListManager).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/INetworkListManager.dart:134:50: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    GUID.fromString(IID_INetworkListManager).addressOf,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IWbemLocator.dart:82:38: Error: The getter ‘addressOf’ isn’t defined for the class ‘COMObject’.
  • ‘COMObject’ is from ‘package:win32/src/com/combase.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/com/combase.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    final ptr = COMObject.allocate().addressOf;
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IWbemLocator.dart:84:68: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    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,
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/generated/IWbemLocator.dart:85:64: Error: The getter ‘addressOf’ isn’t defined for the class ‘GUID’.
  • ‘GUID’ is from ‘package:win32/src/structs.dart’ (‘/D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart’).
    Try correcting the name to the name of an existing getter, or defining a getter or field named ‘addressOf’.
    nullptr, CLSCTX_ALL, GUID.fromString(IID_IWbemLocator).addressOf, ptr);
    ^^^^^^^^^
    /D:/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter ‘addressOf’ isn’t defined for the class ‘Utf8’.
  • «Utf8» — это из «пакета:ffi/src/utf8.dart» («/D:/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart»). Попробуйте исправить имя на имя существующего получателя или определить получатель или поле с именем «Адрес». Строка toString() => fromUtf8(адрес); ^^^^^^^^^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:1111:7: Ошибка: Структура «ENUMLOGFONTEX» пуста. Пустые структуры-это неопределенное поведение. класс ENUMLOGFONTEX расширяет структуру { ^ /D:/flutter/.pub-кэш/размещенный/pub.dartlang.org/win32-1.7.4/lib/src/структуры.dart:2835:7: Ошибка: Структура «BLUETOOTH_PIN_INFO» пуста. Пустые структуры-это неопределенное поведение. класс BLUETOOTH_PIN_INFO расширяет структуру { ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2960:7: Ошибка: Структура «EXCEPT» пуста. Пустые структуры-это неопределенное поведение. класс EXCEPT расширяет структуру {} ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2966:7: Ошибка: Структура «КЛЮЧ СВОЙСТВА» пуста. Пустые структуры-это неопределенное поведение. ключ СВОЙСТВ класса расширяет структуру {} ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2973:7: Ошибка: Структура ‘PROPVARIANT’ пуста. Пустые структуры-это неопределенное поведение. класс PROPVARIANT расширяет структуру {} ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2978:7: Ошибка: Структура «SAFEARRAY» пуста. Пустые структуры-это неопределенное поведение. класс SAFEARRAY расширяет структуру {} ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2985:7: Ошибка: Структура ‘CLSID’ пуста. Пустые структуры-это неопределенное поведение. класс CLSID расширяет структуру {} ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2992:7: Ошибка: Структура «STATSTG» пуста. Пустые структуры-это неопределенное поведение. класс STATSTG расширяет структуру {} ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4/lib/src/structs.dart:2999:7: Ошибка: Структура «NLM_SIMULATED_PROFILE_INFO» пуста. Пустые структуры-это неопределенное поведение. класс NLM_SIMULATED_PROFILE_INFO расширяет структуру {} ^ /D:/flutter/.pub-кэш/размещенный/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Ошибка: Структура «Utf8″ пуста. Пустые структуры-это неопределенное поведение. класс Utf8 расширяет Структуру { ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Ошибка: Структура ‘Utf16’ пуста. Пустые структуры-это неопределенное поведение. класс Utf16 расширяет Структуру { ^ /D:/flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Ошибка: Ожидаемый тип » T «должен быть допустимым и созданным экземпляром подтипа «NativeType». окончательный int totalSize = количество * sizeOf(); ^

СБОЙ: Сборка завершилась неудачно с исключением.

  • Где: Сценарий ‘D:flutterpackagesflutter_toolsgradleflutter.gradle строка: 1035
  • Что пошло не так: Не удалось выполнить задачу»: приложение:compileflutterbuildebug».

Процесс «команда «D:flutterbinflutter.bat» закончено с ненулевым значением выхода 1

  • Попробуйте: Запустите с параметром —stacktrace, чтобы получить трассировку стека. Запустите с параметром —info или —debug, чтобы получить больше выходных данных журнала. Запустите с —scan, чтобы получить полную информацию.
  • Получите дополнительную помощь по адресу https://help.gradle.org

ОШИБКА СБОРКИ в 20-х годах Исключение: ошибка сборки задачи Gradle с кодом выхода 1

Ответ №1:

удалите этот /D:/flutter/.pub-cache/ каталог и запустите flutter upgrade amp;amp; flutter precache amp;amp; flutter doctor