flet-dev / serious-python

Python runtime for Flutter apps
Apache License 2.0
186 stars 20 forks source link

Build Issue : UnmodifiableUint8ListView #106

Open Ma2oud opened 3 weeks ago

Ma2oud commented 3 weeks ago

Please help to solve build issue after running command: dart run serious_python:main package app/src

I am getting following error: Building package executable... Failed to build serious_python:main: /C:/.../Pub/Cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'. UnmodifiableUint8ListView(Uint8List(0)); ^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/.../Pub/Cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:7:7: Error: Method not found: 'UnmodifiableUint32ListView'. UnmodifiableUint32ListView(Uint32List(0)); ^^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/.../Pub/Cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:9:7: Error: Method not found: 'UnmodifiableInt32ListView'. UnmodifiableInt32ListView(Int32List(0)); ^^^^^^^^^^^^^^^^^^^^^^^^^ Failed to build serious_python:main: /C:/.../Pub/Cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'.
UnmodifiableUint8ListView(Uint8List(0)); ^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/.../Pub/Cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:7:7: Error: Method not found: 'UnmodifiableUint32ListView'.
UnmodifiableUint32ListView(Uint32List(0)); ^^^^^^^^^^^^^^^^^^^^^^^^^^ /C:/.../Pub/Cache/hosted/pub.dev/archive-3.3.7/lib/src/bzip2/bzip2.dart:9:7: Error: Method not found: 'UnmodifiableInt32ListView'.
UnmodifiableInt32ListView(Int32List(0)); ^^^^^^^^^^^^^^^^^^^^^^^^^

I Googled for same issued and followed lots of recommended solutions with no effect. Some of similar issues that don't work for me are as follow: 1) https://github.com/jonataslaw/get_cli/issues/263

2) https://stackoverflow.com/questions/69553108/flutter-error-unmodifiableuint8listview-is-restricted-and-cant-be-extended-o 3) https://github.com/flutter/flutter/issues/153001

My Flutter Doctor Status: Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [Version 10.0.19045.4780], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) X cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details. X Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/to/windows-android-setup for more details. [√] Chrome - develop for the web [X] Visual Studio - develop Windows apps X Visual Studio not installed; this is necessary to develop Windows apps. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [√] Android Studio (version 2024.1) [√] Connected device (3 available) [√] Network resources

! Doctor found issues in 2 categories.

It seems that win32 in which is an indirect dependencies in

ndonkoHenri commented 3 weeks ago

Try downgrading your flutter version to 3.22.0 (ref)