I was told to ask you to either avoid a reference or create a plugin (I am serious :)
mark8044 opened this issue · comments
I started getting this error/warning today, out of the blue. Maybe related to upgrade of flutter master channel SDK, as I can't remember changing anything else.
App will still launch fine
Package flutter_local_notifications:linux references flutter_local_notifications_linux:linux as the default plugin, but the package does not exist.
Ask the maintainers of flutter_local_notifications to either avoid referencing a default implementation via `platforms: linux: default_package: flutter_local_notifications_linux` or create a plugin named flutter_local_notifications_linux.
Thanks for raising. Will see if I can reproduce this but this looks odd as I don't see a difference with how this plugin references the Linux implementation compared the first-party/official plugins
yes very odd, never seen such a warning before (for any plugin). In case it matters, the master channel version I am on is:
Flutter 3.24.0-1.0.pre.88 • channel master • https://github.com/flutter/flutter.git
Framework • revision 43f3252c82 (5 hours ago) • 2024-07-11 13:36:55 -0700
Engine • revision 36dccf7bb2
Tools • Dart 3.6.0 (build 3.6.0-26.0.dev) • DevTools 2.37.1
This was resolved a patch release to the Linux package. Based on the constraints defined for the main/front-facing plugin, it should be pulled in automatically though you may need to run commands like flutter pub upgrade
Can confirm the fix works 👍
Thanks for the swift fix!
FTR it looks like this warning was introduced in flutter/flutter#137040 .
I'm getting this error after doing flutter upgrade, tried flutter pub upgrade, still getting these errors
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: linux: default_package: file_picker
or add an inline implementation to file_picker via platforms: linux:
pluginClass
or dartPluginClass
.
Package file_picker:macos references file_picker:macos as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: macos: default_package: file_picker
or add an inline implementation to file_picker via platforms: macos:
pluginClass
or dartPluginClass
.
Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: windows: default_package: file_picker
or add an inline implementation to file_picker via platforms: windows:
pluginClass
or dartPluginClass
.
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: linux: default_package: file_picker
or add an inline implementation to file_picker via platforms: linux:
pluginClass
or dartPluginClass
.
Package file_picker:macos references file_picker:macos as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: macos: default_package: file_picker
or add an inline implementation to file_picker via platforms: macos:
pluginClass
or dartPluginClass
.
Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: windows: default_package: file_picker
or add an inline implementation to file_picker via platforms: windows:
pluginClass
or dartPluginClass
.
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: linux: default_package: file_picker
or add an inline implementation to file_picker via platforms: linux:
pluginClass
or dartPluginClass
.
Package file_picker:macos references file_picker:macos as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: macos: default_package: file_picker
or add an inline implementation to file_picker via platforms: macos:
pluginClass
or dartPluginClass
.
Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: windows: default_package: file_picker
or add an inline implementation to file_picker via platforms: windows:
pluginClass
or dartPluginClass
.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 3.24.0-1.0.pre.217, on Microsoft Windows [Version 10.0.19045.4651], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.3)
[√] Android Studio (version 2024.1)
[√] VS Code (version 1.89.1)
[√] Connected device (4 available)
[√] Network resources
Android Studio Koala Feature Drop 2024.1.2
file_picker: ^8.0.6
flutter_local_notifications: ^17.2.1+2
Ran flutter pub upgrade --major-versions - still got the same error, is there another way to solve this?
flutter pub upgrade --major-versions
Resolving dependencies... (10.8s)
Changed 2 constraints in pubspec.yaml:
flutter_webrtc: ^0.10.7 -> ^0.11.4
location: ^6.0.2 -> ^7.0.0
Resolving dependencies...
Downloading packages... (7.3s)
collection 1.18.0 (1.19.0 available)
ffmpeg_wasm 1.0.1 (1.0.2 available)
flutter_webrtc 0.11.4 (was 0.10.8)
http_parser 4.0.2 (4.1.0 available)
js 0.6.7 (0.7.1 available)
location 7.0.0 (was 6.0.2)
location_platform_interface 5.0.0 (was 4.0.0)
location_web 5.0.3 (was 5.0.2)
material_color_utilities 0.11.1 (0.12.0 available)
web 0.5.1 (1.0.0 available)
Changed 4 dependencies!
6 packages have newer versions incompatible with dependency constraints.
Tryflutter pub outdated
for more information.
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation viaplatforms: linux: default_package: file_picker
or add an inline implementation to file_picker viaplatforms: linux:
pluginClass
ordartPluginClass
.
Package file_picker:macos references file_picker:macos as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: macos: default_package: file_picker
or add an inline implementation to file_picker via platforms: macos:
pluginClass
or dartPluginClass
.
Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: windows: default_package: file_picker
or add an inline implementation to file_picker via platforms: windows:
pluginClass
or dartPluginClass
.
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: linux: default_package: file_picker
or add an inline implementation to file_picker via platforms: linux:
pluginClass
or dartPluginClass
.
Package file_picker:macos references file_picker:macos as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: macos: default_package: file_picker
or add an inline implementation to file_picker via platforms: macos:
pluginClass
or dartPluginClass
.
Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: windows: default_package: file_picker
or add an inline implementation to file_picker via platforms: windows:
pluginClass
or dartPluginClass
.
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: linux: default_package: file_picker
or add an inline implementation to file_picker via platforms: linux:
pluginClass
or dartPluginClass
.
Package file_picker:macos references file_picker:macos as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: macos: default_package: file_picker
or add an inline implementation to file_picker via platforms: macos:
pluginClass
or dartPluginClass
.
Package file_picker:windows references file_picker:windows as the default plugin, but it does not provide an inline implementation.
Ask the maintainers of file_picker to either avoid referencing a default implementation via platforms: windows: default_package: file_picker
or add an inline implementation to file_picker via platforms: windows:
pluginClass
or dartPluginClass
.