Flutter Channel渠道撵彻,更新Flutter SDK

flutter? --version? 列出所有版本

flutter channel 列出當(dāng)前所有渠道穩(wěn)定版钓株,開發(fā)版等? 和目前所在的渠道版本

master? ? ? ? ? ?為當(dāng)前最新的channel;

dev? ? ? ? ? ? ? ??為當(dāng)前最新且充分測試后的channel陌僵;

beta? ? ? ? ? ? ??為每月Flutter官方調(diào)整選出來的最好的dev的channel轴合;

stable? ? ? ? ? ??為當(dāng)前最穩(wěn)定的channel。

穩(wěn)定性排序:master < dev < beta < stable?

更新Flutter SDK

在命令行中運(yùn)行命令:“flutter upgrade --force”碗短。?

有的小伙伴用“flutter upgrade”?可能會報(bào)錯受葛。所以這里推薦用強(qiáng)制更新。

耐心等待大約10分鐘偎谁,當(dāng)出現(xiàn)下面界面的時候总滩,說明更新完了。

更新后巡雨,運(yùn)行項(xiàng)目闰渔,很奇怪報(bào)了錯誤信息,錯誤信息如下:

Running Gradle task 'assembleDebug'...

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-0.0.4+3/lib/src/path_provider_windows_real.dart:126:25: Error: The getter 'addressOf' isn't defined for the class 'GUID'.

- 'GUID' is from 'package:win32/src/structs.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart').

Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.

? ? ? ? ? knownFolderID.addressOf, KF_FLAG_DEFAULT, NULL, pathPtrPtr);

? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:1067:7: Error: The getter 'addressOf' isn't defined for the class 'LOGFONT'.

- 'LOGFONT' is from 'package:win32/src/structs.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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<Uint8>().elementAt(28).cast<Utf16>();

? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:1112:29: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.

- 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart').

Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.

? LOGFONT get elfLogFont => addressOf.cast<LOGFONT>().ref;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:1114:29: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.

- 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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 elfFullName => addressOf

? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:1120:26: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.

- 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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 elfStyle => addressOf

? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/lib/src/structs.dart:1126:27: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.

- 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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

? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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<Uint8>().elementAt(20).cast<Utf16>().unpackString(128);

? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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<Uint8>().elementAt(20).value = 0;

? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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

? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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<Uint8>().elementAt(BTH_MAX_PIN_SIZE).value;

? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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<Uint8>().elementAt(BTH_MAX_PIN_SIZE).value =

? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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<Uint8>().asTypedList(pinLength));

? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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<Uint8>().elementAt(idx).value = pinData[idx];

? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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;

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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,

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/win32-1.7.4+1/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);

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter 'addressOf' isn't defined for the class 'Utf8'.

- 'Utf8' is from 'package:ffi/src/utf8.dart' ('../../../../../../.pub-cache/hosted/pub.flutter-io.cn/ffi-0.1.3/lib/src/utf8.dart').

Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.

? String toString() => fromUtf8(addressOf);

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^^^^^^^^^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {}

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {}

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {}

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {}

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {}

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {}

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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 {}

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs are undefined behavior.

class Utf8 extends Struct {

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs are undefined behavior.

class Utf16 extends Struct {

? ? ? ^

../../../../../../.pub-cache/hosted/pub.flutter-io.cn/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<T>();

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^

FAILURE: Build failed with an exception.

* Where:

Script '/Users/cheryl/Documents/work/sdk/flutter_sdk/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1035

* What went wrong:

Execution failed for task ':app:compileFlutterBuildDebug'.

> Process 'command '/Users/cheryl/Documents/work/sdk/flutter_sdk/flutter/bin/flutter'' 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

BUILD FAILED in 12s

Exception: Gradle task assembleDebug failed with exit code 1


我在網(wǎng)上嘗試了好多種解決方法

首先清除緩存:?flutter clean

如果不行铐望,使用:flutter packages cache repair

結(jié)果嘗試好多遍依舊不行冈涧,報(bào)錯向挖,后來重啟項(xiàng)目,錯誤信息沒有了炕舵,項(xiàng)目可以運(yùn)行了何之,很奇怪。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末咽筋,一起剝皮案震驚了整個濱河市溶推,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌奸攻,老刑警劉巖蒜危,帶你破解...
    沈念sama閱讀 206,968評論 6 482
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異睹耐,居然都是意外死亡辐赞,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,601評論 2 382
  • 文/潘曉璐 我一進(jìn)店門硝训,熙熙樓的掌柜王于貴愁眉苦臉地迎上來响委,“玉大人,你說我怎么就攤上這事窖梁∽阜纾” “怎么了?”我有些...
    開封第一講書人閱讀 153,220評論 0 344
  • 文/不壞的土叔 我叫張陵纵刘,是天一觀的道長邀窃。 經(jīng)常有香客問我,道長假哎,這世上最難降的妖魔是什么瞬捕? 我笑而不...
    開封第一講書人閱讀 55,416評論 1 279
  • 正文 為了忘掉前任,我火速辦了婚禮舵抹,結(jié)果婚禮上肪虎,老公的妹妹穿的比我還像新娘。我一直安慰自己掏父,他們只是感情好笋轨,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,425評論 5 374
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著赊淑,像睡著了一般爵政。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上陶缺,一...
    開封第一講書人閱讀 49,144評論 1 285
  • 那天钾挟,我揣著相機(jī)與錄音,去河邊找鬼饱岸。 笑死,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的流译。 我是一名探鬼主播昆婿,決...
    沈念sama閱讀 38,432評論 3 401
  • 文/蒼蘭香墨 我猛地睜開眼行施,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 37,088評論 0 261
  • 序言:老撾萬榮一對情侶失蹤牍汹,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后柬泽,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體慎菲,經(jīng)...
    沈念sama閱讀 43,586評論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,028評論 2 325
  • 正文 我和宋清朗相戀三年锨并,在試婚紗的時候發(fā)現(xiàn)自己被綠了露该。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,137評論 1 334
  • 序言:一個原本活蹦亂跳的男人離奇死亡第煮,死狀恐怖解幼,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情空盼,我是刑警寧澤书幕,帶...
    沈念sama閱讀 33,783評論 4 324
  • 正文 年R本政府宣布新荤,位于F島的核電站揽趾,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏苛骨。R本人自食惡果不足惜篱瞎,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,343評論 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望痒芝。 院中可真熱鬧俐筋,春花似錦、人聲如沸严衬。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,333評論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽请琳。三九已至粱挡,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間俄精,已是汗流浹背询筏。 一陣腳步聲響...
    開封第一講書人閱讀 31,559評論 1 262
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留竖慧,地道東北人嫌套。 一個月前我還...
    沈念sama閱讀 45,595評論 2 355
  • 正文 我出身青樓逆屡,卻偏偏與公主長得像,于是被迫代替她去往敵國和親踱讨。 傳聞我的和親對象是個殘疾皇子魏蔗,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,901評論 2 345

推薦閱讀更多精彩內(nèi)容