-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Unable to Run after upgrading flutter to version 3.24 for Android on Windows 11 #153001
Comments
Version 3.24 is stable release? |
Hi @asafgo, 3.24 is the newest stable version. What you're facing is likely an issue with your local pub cache. Can you try clearing your pub cache and then running your project again to see if you still experience this issue? You can clear your pub cache by running Please also make sure you the packages you are using are compatible with the latest version of flutter and dart. Thank you |
I have already tried |
I have the same issue after upgrading Flutter to 3.24.0. I tried to clear the pub cache, but the error persists.
|
I have the same error with version 3.24.0. I have installed version 3.22.3 and it works fine. I don't know what the problem could be. |
flutter doctor -v [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.4.4) [√] Android Studio (version 2024.1) [√] VS Code (version unknown) [√] Connected device (4 available) [√] Network resources • No issues found! |
Same problem |
Same problem , not any version downgrade solve this issue |
This works for me: |
The error I receive is:
../../../AppData/Local/Pub/Cache/hosted/pub.dev/archive-3.4.9/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'.
In file bzip2.dart in the newest version 3.6.1 the reference to Unmodifiable32List has dissapeared import 'dart:typed_data'; class BZip2 { So it seems that the problem in my case is caused by Excel package (https://github.com/justkawal/excel/) depending on an old version of archive |
I've have same issue |
I have the same issue about this package. It must be updated to 3.6.1 |
I can confirm that in my code excel 4.0.3 is using archive 3.4.9 that cause the problem. |
In my case, the issue is caused by the pdf package that includes archive 3.4.10.
|
I have the same issue running 30 minutes but nothing happen |
What is working for me, after upgrading to flutter 3.24 is to open Hopefully, |
I solved the issue with these ; |
This is an error that appeared now with the new version. I think that the problem is into file .pub-cache/hosted/pub.dev/win32-5.2.0/lib/src/guid.dart. |
Based on above comments, it seems to be an issue with third party package Also, track the main issue in dedicated repo: #153001 (comment) |
I think it is more widespread than excel, since I do not use excel Hw to identify which if any third party is cusing the issue |
You can run |
The only package I have using archive is lottie 3.1.2 , and it is using archive 3.6.1 Could it mean that Archive is not causing this? |
Add this to your pubspec.yaml, it'll work dependency_overrides:
archive: ^3.6.1 |
This did not solve the issue for me, I have now downgraded back to Flutter 3.22.3. After hours - the following worked for me and I am now able to build with Flutter 3.24.0:
|
Just do it to fix. |
thank u so much, this works for me! dependency_overrides:
archive: ^3.6.1 |
for my case i managed to fix this by
|
@paulobreim yes this is the key to fix the win32 (UnmodifiableUint8ListView) bug |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to reproduce
Actual results
/C:/Users/yyyy/AppData/Local/Pub/Cache/hosted/pub.dev/archive-3.4.9/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'.
UnmodifiableUint8ListView(Uint8List(0));
Target kernel_snapshot_program failed: Exception
P.S.
Works without any problem when downgrading back to 3.22.3
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
The text was updated successfully, but these errors were encountered: