skip to Main Content

.. /../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


  1. To fix this, add web: ^0.5.1 in dependency_overrides section of your pubspec.yaml file:

    dependencies:
      # Your existing dependencies
    
    dev_dependencies:
      # Your existing dev dependencies
    
    dependency_overrides:
      web: ^0.5.1
    

    Then, run flutter pub get to apply the changes.

    Login or Signup to reply.
  2. 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 of excel is always used, even if other dependencies request a different version, you can add the following to your pubspec.yaml:

    dependencies:
      excel: ^4.0.2
    
    dependency_overrides:
      excel: 4.0.2
    

    This guarantees that excel remains at version 4.0.2, regardless of other dependencies.

    After downgrading, run Flutter Clean and pub get and pub upgrade to ensure the changes are applied.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search