miru-project/miru-app

Build fails on Linux with Flutter 3.24.5, Dart 3.5.4

Open

#306 aperta il 21 nov 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Dart (236 fork)batch import
help wanted

Metriche repository

Star
 (5505 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Brief summary

Building the linux version fails because Dart 3.5 brought a breaking change:

ERROR: ../../../.pub-cache/hosted/pub.dev/win32-5.2.0/lib/src/guid.dart:32:9: Error: Type 'UnmodifiableUint8ListView' not found.
ERROR:   final UnmodifiableUint8ListView bytes;
ERROR:         ^^^^^^^^^^^^^^^^^^^^^^^^^

Steps to reproduce

  1. Clone source code with git
  2. Install dependencies: clang cmake libgtk-3-dev libmpv-dev ninja-build pkg-config
  3. Build: flutter --no-version-check build linux --release
  4. Get error message

Workaround:

flutter pub upgrade --major-versions share_plus package_info_plus 
flutter pub add fluent_ui:^4.9.2
flutter pub add media_kit:^1.1.11
flutter pub add easy_refresh:^3.4.0
flutter pub add archive:^3.6.1

Miru version

v1.8.1-22-g8599d0d

Device

Debian Linux

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • If this is an issue with a extension, I should be opening an issue in the extension repository.

Guida contributor