Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type 'UnmodifiableUint8ListView' not found (Flutter Build Error)

I created a Flutter project, that targets Android, iOS, macOS, Linux and Windows.

It works well on both Android and iOS, but when I try to compile it on Windows 10, I got the following error:

Error (Xcode): ../../../.pub-cache/hosted/pub.dev/win32-5.2.0/lib/src/guid.dart:32:9: Error: Type 'UnmodifiableUint8ListView' not found.

or


/C:/Users/Matt/AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.5.0/lib/src/guid.dart(32,9): error G7D2AEF3C: Type 'UnmodifiableUint8ListView' not found. [D:\Projects\MyProject\myproject\build\windows\x64\flutter\flutter_assemble.vcxproj]
/C:/Users/Matt/AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.5.0/lib/src/guid.dart(32,9): error G94EA939C: 'UnmodifiableUint8ListView' isn't a type. [D:\Projects\MyProject\myproject\build\windows\x64\flutter\flutter_assemble.vcxproj]
/C:/Users/Matt/AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.5.0/lib/src/guid.dart(52,17): error GB1B8BC88: Method not found: 'UnmodifiableUint8ListView'. [D:\Projects\MyProject\myproject\build\windows\x64\flutter\flutter_assemble.vcxproj]
/C:/Users/Matt/AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.5.0/lib/src/guid.dart(56,31): error GB1B8BC88: Method not found: 'UnmodifiableUint8ListView'. [D:\Projects\MyProject\myproject\build\windows\x64\flutter\flutter_assemble.vcxproj]
/C:/Users/Matt/AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.5.0/lib/src/guid.dart(100,17): error GB1B8BC88: Method not found: 'UnmodifiableUint8ListView'. [D:\Projects\MyProject\myproject\build\windows\x64\flutter\flutter_assemble.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: la build personnalisée de 'D:\Projects\MyProject\myproject\build\windows\x64\CMakeFiles\00f4297bda59febfcdc266bbd2530f6d\flutter_windows.dll.rule;D:\Projects\MyProject\myproject\build\windows\x64\CMakeFiles\785f825a0ac974305d35d5e7685e38b2\flutter_assemble.rule' s'est arrêtée. Code�1. [D:\Projects\MyProject\myproject\build\windows\x64\flutter\flutter_assemble.vcxproj]

I tried flutter clean then flutter pub get but the bug remains.

How can I fix this error?

like image 320
matteoh Avatar asked Feb 02 '26 16:02

matteoh


1 Answers

OK so here is what I did to fix the problem:

  • check here that every dependency I have in my project that depends on win32 is up to date
  • run flutter pub upgrade win32
like image 128
matteoh Avatar answered Feb 05 '26 07:02

matteoh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!