Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Issue : UnmodifiableUint8ListView #106

Open
Ma2oud opened this issue Aug 19, 2024 · 1 comment
Open

Build Issue : UnmodifiableUint8ListView #106

Ma2oud opened this issue Aug 19, 2024 · 1 comment

Comments

@Ma2oud
Copy link

Ma2oud commented Aug 19, 2024

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. build issue in dart 3.5.0 - UnmodifiableUint8ListView jonataslaw/get_cli#263

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

  3. Unable to Run after upgrading flutter to version 3.24 for Android on Windows 11 flutter/flutter#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
Copy link
Collaborator

Try downgrading your flutter version to 3.22.0 (ref)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants