miru-project/miru-app

Build fails on Linux with Flutter 3.24.5, Dart 3.5.4

Open

#306 创建于 2024年11月21日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Dart (236 fork)batch import
help wanted

仓库指标

Star
 (5,505 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南