.. /../AppData/Local/Pub/Cache/hosted/pub.dev/archive-3.3.9/lib/src/bzip2/bzip2.dart:5:7: Error: Method not found: ‘UnmodifiableUint8ListView’.
UnmodifiableUint8ListView(Uint8List(0));
../../AppData/Local/Pub/Cache/hosted/pub.dev/archive-3.3.9/lib/src/bzip2/bzip2.dart:7:7: Error: Method not found: ‘UnmodifiableUint32ListView’. UnmodifiableUint32ListView(Uint32List(0));
"../../AppData/Local/Pub/Cache/hosted/pub.dev/archive-3.3.9/lib/src/bzip2/bzip2.dart:9:7: Error: Method not found: ‘UnmodifiableInt32ListView’. UnmodifiableInt32ListView(Int32List(0));
class BZip2
static final Uint8List emptyUint8List UnmodifiableUint8ListView(Uint8List(0));
static final Uint32List emptyUint32List UnmodifiableUint32ListView(Uint32List(0));
static final Int32List emptyInt32List UnmodifiableInt32ListView(Int32List(0));
2
Answers
To fix this, add
web: ^0.5.1
independency_overrides
section of yourpubspec.yaml
file:Then, run
flutter pub get
to apply the changes.If you’re using the
excel
library, try the following steps:Option to lock versions using
dependency_overrides
:To ensure that version
4.0.2
ofexcel
is always used, even if other dependencies request a different version, you can add the following to yourpubspec.yaml
:This guarantees that
excel
remains at version4.0.2
, regardless of other dependencies.After downgrading, run
Flutter Clean
andpub get
andpub upgrade
to ensure the changes are applied.