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

Method not found: 'UnmodifiableUint8ListView'. #593

Open
heitor598 opened this issue Oct 4, 2024 · 1 comment
Open

Method not found: 'UnmodifiableUint8ListView'. #593

heitor598 opened this issue Oct 4, 2024 · 1 comment
Labels

Comments

@heitor598
Copy link

heitor598 commented Oct 4, 2024

ℹ️ Info

I'm using version flutter_launcher_icons: ^0.14.1
Flutter 3.24.3

💬 Description

When running dart run flutter_launcher_icons, I got the following error:

Failed to build flutter_launcher_icons:flutter_launcher_icons:

../../../../.pub-cache/hosted/pub.dev/archive-3.4.6/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: 'UnmodifiableUint8ListView'.
UnmodifiableUint8ListView(Uint8List(0));

Captura de Tela 2024-10-04 às 13 52 25

📜 Pubspec.yaml

dev_dependencies:
  flutter_launcher_icons: ^0.14.1
...
flutter_launcher_icons:
  image_path: "assets/images/ic_ios_launcher.png"
  adaptive_icon_foreground: "assets/images/ic_android_launcher.png"
  adaptive_icon_background: "assets/images/ic_android_launcher.png"
  android: true
  ios: true
@heitor598 heitor598 added the bug label Oct 4, 2024
@heitor598 heitor598 changed the title Method not found: 'UnmodifiableUint8ListView'. UnmodifiableUint8ListView(Uint8List(0)); Method not found: 'UnmodifiableUint8ListView'. Oct 4, 2024
@heitor598
Copy link
Author

flutter_launcher_icons: ^0.14.1 depends on image: ^4.2.0 which depends on archive: ^3.4.0 which still uses the UnmodifiableUint8ListView class which was deprecated as of dart 3.6.0.

dependency_overrides:
  archive: ^3.6.1

Solved my problem.

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

No branches or pull requests

1 participant