Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors: Outdated dependencies #1277

Open
Caesarovich opened this issue Apr 17, 2024 · 0 comments
Open

Build errors: Outdated dependencies #1277

Caesarovich opened this issue Apr 17, 2024 · 0 comments

Comments

@Caesarovich
Copy link
Contributor

Caesarovich commented Apr 17, 2024

Describe the bug

The app currently cannot be built/run without tweaks when using a fresh Flutter install (Version 3.16 or higher).

To reproduce

  1. Install a fresh version of Flutter (3.16 or higher)
  2. Clone the repository
  3. Run flutter run
  4. See error
Because localsend_app depends on flutter_localizations from sdk which depends on path 1.9.0,
  path 1.9.0 is required.
So, because localsend_app depends on path 1.8.3, version solving failed.

Expected behavior

To reduce development friction, dependencies should be up to date to match current stable Flutter versions.

Updating to path: 1.9.0 fixes the first issue. But there also is a dependency issue with the wechat_assets_picker package:

Launching lib/main.dart on Linux in debug mode...
ERROR: ../../../../.pub-cache/hosted/pub.dev/photo_manager-2.8.2/lib/src/internal/image_provider.dart:71:5: Error: Type 'DecoderCallback' not found.
ERROR:     DecoderCallback decode, // ignore: deprecated_member_use
ERROR:     ^^^^^^^^^^^^^^^
ERROR: ../../../../.pub-cache/hosted/pub.dev/photo_manager-2.8.2/lib/src/internal/image_provider.dart:96:5: Error: Type 'DecoderCallback' not found.
ERROR:     DecoderCallback decode, // ignore: deprecated_member_use
ERROR:     ^^^^^^^^^^^^^^^
ERROR: ../../../../.pub-cache/hosted/pub.dev/photo_manager-2.8.2/lib/src/internal/image_provider.dart:71:5: Error: 'DecoderCallback' isn't a type.
ERROR:     DecoderCallback decode, // ignore: deprecated_member_use
ERROR:     ^^^^^^^^^^^^^^^
ERROR: ../../../../.pub-cache/hosted/pub.dev/photo_manager-2.8.2/lib/src/internal/image_provider.dart:96:5: Error: 'DecoderCallback' isn't a type.
ERROR:     DecoderCallback decode, // ignore: deprecated_member_use
ERROR:     ^^^^^^^^^^^^^^^
ERROR: Target kernel_snapshot failed: Exception
Building Linux application...                                           
Error: Build process failed

Upgrading to wechat_assets_picker: ^9.0.3 fixes that issue but drops support for Flutter 3.13 or under.

Screenshots

No response

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Additional context

If this issue is agreed upon, I already have a PR ready (#1278).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant