miru-project/miru-app

Build fails on Linux with Flutter 3.24.5, Dart 3.5.4

Open

#306 opened on Nov 21, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Dart (5,505 stars) (236 forks)batch import
help wanted

Description

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.

Contributor guide