-
Notifications
You must be signed in to change notification settings - Fork 179
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 in dart 3.5.0 - UnmodifiableUint8ListView #263
Comments
same same /../.pub-cache/hosted/pub.dev/win32-5.5.0/lib/src/guid.dart:32:9: Error: Type 'UnmodifiableUint8ListView' not found. |
This is due to Uint8ListView being deprecated (dart-lang/sdk#45115) The latest version of win32 package should work though Try |
This still isn't solving the issue :( |
You can also try switching to stable version of flutter as that is connected to Dart version 3.4.3 currently (whereas master is connected to Dart 3.5.0) You can switch by running |
I've got the same issue, and it has been resolved by switching to the stable channel, |
This works!! Thank you very much :) |
I've have same issue |
Thank you @sajidshaikh20 Your comment was very usefull it was worked one request: Pls before post answer mention the error also then everyone will get idea |
Same problem |
Same problem over here. I've tried steps pointed by [sajidshaikh20] but the problem hasn't been solved |
Same problem , not any version downgrade solve this issue |
This works for me: |
The stable version of flutter was updated to dart 3.5.0 today. This means the UnmodifiableUint8ListView breaking change is now in flutter stable. Ideally any libraries that used this class use the new types E.g. it looks like the archive package and win32 libraries have already been updated, so you can use the upgrade command above to update it. It looks like there's a fix being worked on for the tflite library |
If anyone facing this issue, I did these steps:
|
Thank you so much @luckycreationsindia, this helped me out after trying everything else in the thread! I left out step 4 but steps 1 - 3 still worked for me. Now I can breathe normally again lol 😂 |
I am on the latest stable channel, and I am only now encountering this issue. I am not depending on |
Same here, I'm building for web from a mac and still getting that even without depending on it.
|
It appears to be a transient dependency from shared_preferences |
The latest version of https://pub.dev/packages/image_cropper_platform_interface is 7.0.0 @JulioCRFilho try upgrading to that, and upgrading your archive package too |
../../.pub-cache/hosted/pub.dev/win32-5.2.0/lib/src/guid.dart:32:9: Error: Type 'UnmodifiableUint8ListView' not found. FAILURE: Build failed with an exception.
|
Thanks, now I'm only getting this:
edit: I've discovered that my problem occurs because excel: 4.0.3 depends on archive: 3.4.9... |
Looks like the Excel package already has an open bug for that: justkawal/excel#355 |
This error is occurring in the stable version that was released yesterday. |
The 'flutter pub upgrade win32' command worked for me. |
Work Around > Just add directly win32: ^5.5.3 in dependency |
I really don't like Flutter because I often find myself trying to fix Flutter or its packages instead of focusing on solving my logic bugs |
Sounds like you should create your own framework then, since you get to fix Flutter so often |
😒 I had the bad idea to update flutter today -_- no more translations !! |
This worked for me |
This worked for me |
../../../.pub-cache/hosted/pub.dev/alice-1.0.0-dev.10/lib/ui/calls_list/page/alice_calls_list_page.dart:270:63: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't. final String? path; final String? path; After upgrading the flutter to latest version and alice package to lastest version |
thanks bro. after struggling so much this worked for me. |
This was what worked for me all I needed to do was install archive |
This worked for me, thanks. |
$ flutter pub run flutter_launcher_icons:main
|
[image: image.png]
Just add the win32, flutter_launcher_icons package in dependency_overrides,
If you want another packages also add
…On Wed, 2 Oct 2024 at 15:52, Ammar Omari ***@***.***> wrote:
$ flutter pub run flutter_launcher_icons:main
OR
$ dart run flutter_launcher_icons:main
My error was:
Deprecated. Use `dart run` instead.
Building package executable...
Failed to build flutter_launcher_icons:main:
../../../../../.pub-cache/hosted/pub.dev/archive-3.4.10/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'.
UnmodifiableUint8ListView(Uint8List(0));
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../../.pub-cache/hosted/pub.dev/archive-3.4.10/lib/src/bzip2/bzip2.dart:7:7: Error: Method not found: 'UnmodifiableUint32ListView'.
UnmodifiableUint32ListView(Uint32List(0));
^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../../.pub-cache/hosted/pub.dev/archive-3.4.10/lib/src/bzip2/bzip2.dart:9:7: Error: Method not found: 'UnmodifiableInt32ListView'.
UnmodifiableInt32ListView(Int32List(0));
^^^^^^^^^^^^^^^^^^^^^^^^^
*Solution:*
I almost tried all these solutions but it didn't work for me.
And my workaround solution was:
- Open this file: "../../../../../.pub-cache/hosted/
pub.dev/archive-3.4.10/lib/src/bzip2/bzip2.dart"
- Change the code from this:
class BZip2 {
static final Uint8List emptyUint8List =
UnmodifiableUint8ListView(Uint8List(0));
static final Uint32List emptyUint32List =
UnmodifiableUint32ListView(Uint32List(0));
static final Int32List emptyInt32List =
UnmodifiableInt32ListView(Int32List(0));
...
To this:
class BZip2 {
static final Uint8List emptyUint8List = Uint8List(0);
static final Uint32List emptyUint32List = Uint32List(0);
static final Int32List emptyInt32List = Int32List(0);
...
—
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXTS46M6WSI4WSUT7QE3GW3ZZPCPBAVCNFSM6AAAAABJVLOYJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBYGI4TOMJWHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I did everything but I had no luck. By everything, I mean, I clean the cache, I upgraded flutter, I upgraded win32, I switched to stable channel, I did pub get and upgrade but there was not luck as I was still getting the same error. What solved the issue for me was to delete the pubspec.lock file and run So, I believe you have to follow the steps posted by others, if it doesn't solve it for you, delete the pubspec.lock file. |
Ok, I'll check it out.
…On Fri, 11 Oct 2024, 4:36 pm tArHe OweH, ***@***.***> wrote:
I did everything but I had no luck. By everything, I mean, I clean the
cache, I upgraded flutter, I upgraded win32, I switched to stable channel,
I did pub get and upgrade but there was not luck as I was still getting the
same error.
What solved the issue for me was to delete the pubspec.lock file and run flutter
pub get again.
So, I believe you have to follow the steps posted by others, if it doesn't
solve it for you, delete the pubspec.lock file.
—
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXTS46NKY3POX77EIAUCOXTZ26WMJAVCNFSM6AAAAABJVLOYJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGE3TMMJZGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Can you please send me the
.yaml file and flutter version
…On Fri, 11 Oct 2024, 4:36 pm tArHe OweH, ***@***.***> wrote:
I did everything but I had no luck. By everything, I mean, I clean the
cache, I upgraded flutter, I upgraded win32, I switched to stable channel,
I did pub get and upgrade but there was not luck as I was still getting the
same error.
What solved the issue for me was to delete the pubspec.lock file and run flutter
pub get again.
So, I believe you have to follow the steps posted by others, if it doesn't
solve it for you, delete the pubspec.lock file.
—
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXTS46NKY3POX77EIAUCOXTZ26WMJAVCNFSM6AAAAABJVLOYJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGE3TMMJZGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
.lock files are generated automatically and should not be edited. You should instead modify pubspec.yml by adding dependency_overrides: parameter like shown in this comment |
Do it: flutter pub upgrade --major-versions |
build issue in dart 3.5.0 - UnmodifiableUint8ListView Hi, had same issue, i'm using stripe so I just need to follow these steps to solve my problem. step 3: flutter pub get |
it work for me, thanks u |
Hi, @nsanju0413 worked for me. thanks |
I did whatever proposed in this thread, alas adding this to pubspec.yaml worked out for me: dependency_overrides: |
works for me and just delete the win32 dependency in your pubspec.yaml if you dont use it |
It works!
…On Wed, 13 Nov 2024, 4:42 pm Glenn Michael Mejias, ***@***.***> wrote:
flutter pub add win32
works for me and just delete the win32 dependency in your pubspec.yaml if
you dont use it
—
Reply to this email directly, view it on GitHub
<#263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXTS46KGBTU36FOUKCOM5H32AMXZPAVCNFSM6AAAAABJVLOYJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTGI2TCMJVGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thanks, it worked for me. |
Updated dependencies to overcome an error listed here, jonataslaw/get_cli#263
thanks, worked |
The text was updated successfully, but these errors were encountered: