justkawal / excel

Excel Library for Flutter and Dart - https://pub.dev/packages/excel
MIT License
419 stars 233 forks source link

App will not compile with excel 4.0.3 and flutter 3.24 as of outdated archive 3.4.9 package. #364

Open asafgo opened 2 months ago

asafgo commented 2 months ago

App will not compile with excel 4.0.3 and flutter 3.24 as of outdated archive 3.4.9 package with error:

/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));

Please update the package to use archive: ^3.6.1

simeonangelov94 commented 2 months ago

Same here.

najibkr commented 2 months ago

Facing the same issue...

/~/.pub-cache/hosted/pub.dev/archive-3.1.1/lib/src/bzip2/bzip2.dart:9:7: Error: Method not found: 'UnmodifiableInt32ListView'. UnmodifiableInt32ListView(Int32List(0));

x1d3veloper commented 2 months ago

same issue for me with excel 4.0.2 and flutter 3.24.0

asafgo commented 2 months ago

What is working for me, after upgrading to flutter 3.24 is to open pubspec.yaml and downgrade excel package to 4.0.2 like so excel: ^4.0.2 and then add archive 3.6.1 like so archive: ^3.6.1 and save the file so it will update the packages as needed.

ps6067966 commented 2 months ago

+1

KirubaKaran2001 commented 2 months ago

What is working for me, after upgrading to flutter 3.24 is to open pubspec.yaml and downgrade excel package to 4.0.2 like so excel: ^4.0.2 and then add archive 3.6.1 like so archive: ^3.6.1 and save the file so it will update the packages as needed.

Application will be compiled but excel download functionality is not working.

Tom-ne commented 2 months ago

same here

frankylee commented 2 months ago

Also seeing this issue.

mikeesouth commented 2 months ago

As a temporary workaround, it seems to work to use archive 3.6.1 as a dependency override.

Use the 3.6.1 version in the yaml dependencies:

  archive: 3.6.1

Add an override section with archive 3.6.1:

dependency_overrides:
  # Remove this override when the excel package releases 4.0.4+
  archive: 3.6.1
adaonder commented 2 months ago

@FauconSpartiate @justkawal Please I am waiting update.

jmguazzo commented 2 months ago

@FauconSpartiate @justkawal

The version on pub.dev is 4.0.4 with archive: 3.4.9.

The fix for archive: ^3.4.10 is for version 4.0.6 which is not on pub.dev.

Could you publish the new version on pub.dev ?

FauconSpartiate commented 2 months ago

Only @justkawal has the permissions

justkawal commented 2 months ago

Only @justkawal has the permissions

Doing it today, Sorry for the delay.

Carapacik commented 2 months ago

@justkawal any news?

BlastTea commented 2 months ago

Use this temporarily in pubspec.yaml until released to pub.dev

dependencies:
  excel:
    git:
      url: https://github.com/justkawal/excel.git
      ref: cd926d47af4fc81f31a102f566d0c643c2ef7dcd #Last commit ref
Istiak-Ahmed78 commented 2 months ago

Use this temporarily in pubspec.yaml until released to pub.dev

dependencies:
  excel:
    git:
      url: https://github.com/justkawal/excel.git
      ref: cd926d47af4fc81f31a102f566d0c643c2ef7dcd #Last commit ref

Doing this, working fine now. But please update the package and release a permanent solution