-
Notifications
You must be signed in to change notification settings - Fork 180
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 !! |
[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 |
Any solution for flutter version 3.28.0-2.0.pre.38574 on master channel? It doesn't work on the latest flutter version on stable channel either, and I've already tried all the possible solutions mentioned above. |
Can you show us the issue from the terminal |
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.0.9/lib/src/guid.dart:32:9: Error: Type 'UnmodifiableUint8ListView' not found. FAILURE: Build failed with an exception. |
Did you try this solution?: #263 (comment)
Try rerunning it, I hope it will work for you! The problem is some types aren't inside your Dart Version x.x.x, If this solution doesn't work, please share these lines (32, 52, 56, 100) from this file: "../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-5.0.9/lib/src/guid.dart" |
Also got the same issue |
In my case win32 was transitive dependency, which was not being used. In my case it worked with |
…uilds (KomodoPlatform#163) * Update Flutter to 3.24.3 (stable) Only web build works with this configuration * Bump Flutter version in workflows to `3.24.x` * Remove `desktop_webview_window` dependency * Switch to in-app webview in popup-window * Upgrade `file_picker` to 8.1.2 to fix ios&macos build error win32 v5 removes references to deprecated APIs, which jonataslaw/get_cli#263 * Upgrade `url_launcher` to 6.3.0 to fix iOS build error * Skip web defi fetch step if target is iOS * Bump CI Flutter version to `3.24.x`
* Update Flutter to 3.24.3 (stable) Only web build works with this configuration * Bump Flutter version in workflows to `3.24.x` * Remove `desktop_webview_window` dependency * Switch to in-app webview in popup-window * Upgrade `file_picker` to 8.1.2 to fix ios&macos build error win32 v5 removes references to deprecated APIs, which jonataslaw/get_cli#263 * Upgrade `url_launcher` to 6.3.0 to fix iOS build error * Skip web defi fetch step if target is iOS * Bump CI Flutter version to `3.24.x` * Fix mobile coin details buttons layout - Also fix Bitrefill button in preparation for cross-platform fiat onramp in a similar fashion * Add fullscreen in-app-webview for native platforms * Close the browser if redirected to web app This is a failure condition for the `checkout_status_redirect.html` page * Move payment status events to BLoC The async onConsole/onMessage callback used by the `flutter_inappwebview` package is incompatible with the previous watcher implementation. * Migrate bitrefill provider & watcher to package:web * refactor fullscreen webview to webview dialog * add fiat onramp html page fixes issues with reading `onmessage` and `window.console` from an iframe or another window * apply patch to `web_support.js` to fix web callbacks from pichillilorenzo/flutter_inappwebview#2058 * migrate remaining fiat & bitrefill html references to package:web * WIP: add initial fiat onramp bloc implementation * fix arb merge issue: add arb to currency class * fix type conversion bugs and add more error logging add stacktrace to logs when in kDebug mode * replace onCheckoutComplete callback with BlocListener * improve form state management and add default payment methods list for initial user input * fix cross-platform compilation with conditional imports package:web and js_interop only work on web, so use conditional exports * fix cocoapods build warnings * use url instead of proxy page on native platforms only web requires the proxy page because of CORS restrictions. onConsole, and onMessage works on native platforms * fix hive runtime init exception `Hive.initFlutter` failed on macOS and appears to be a web-specific function that produces an exception on native platforms * add error parsing for banxa order creation * localize fiat error and popup messages * fix status message parsing in wrapper html page * move getCoinAddress to coins bloc * update testing and setup docs add example launch.json and iOS crash logs location add notes about linux setup * fix fiat amount injecting decimals removed unnecessary string `error` field, since the status fields suffice * fix onramp error on linux & banxa parsing bug * fix fiat form overlapping issues on mobile - use autoscrolltext, expand, and align - fix fiat icon errors when scrolling quickly - fix webview platform check * fix flutter analyze warnings * add fiat onramp form integration test * bump build transformer package commit * improve status parsing on native platforms - parsing errors from escaped json strings on Windows - re-enable banxa order status watching * fix coins bloc and Hive init race condition on macos Runtime updates Hive boxes have to be initialised on native platforms before coins bloc executes, which was not happening consistently across all platforms * move confirmation prompt behind conditional import `web` and `js_interop` package imports do not compile on native platforms, so they have to be hidden behind conditional imports to allow for cross-platform support
The text was updated successfully, but these errors were encountered: