You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: "either avoid referencing a default implementation via platforms: windows: default_package: permission_handler_windows or create a plugin named permission_handler_window"
#1471
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.
When I run my app with the above code I get this warning in the Debug Console:
Package permission_handler:windows references permission_handler_windows:windows as the default plugin, but the package does not exist, or is not a plugin package.
Ask the maintainers of permission_handler to either avoid referencing a default implementation via platforms: windows: default_package: permission_handler_windows or create a plugin named permission_handler_windows.
This warning was added to Flutter in July 2024. Here is the relevant change.
My app doesn't even have the Windows platform but adding it doesn't change the error message.
### Expected results
No warning
### Actual results
"Package permission_handler:windows references permission_handler_windows:windows as the default plugin, but the package does not exist, or is not a plugin package.
Ask the maintainers of permission_handler to either avoid referencing a default implementation via platforms: windows: default_package: permission_handler_windows or create a plugin named permission_handler_windows."
### Code sample
<details><summary>Code sample</summary>
```dart
import 'package:permission_handler/permission_handler.dart';
await [Permission.bluetooth, Permission.bluetoothConnect, Permission.locationWhenInUse].request();
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
12.0.0+1
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):[√] Flutter (Channel stable, 3.29.2, on Microsoft Windows [Version 10.0.19045.5737], locale en-US)[√] Windows Version (10 Pro 64-bit, 22H2, 2009)[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)[√] Chrome - develop for the web[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.6)[√] Android Studio (version 2024.3)[√] VS Code (version 1.99.3)[√] Connected device (4 available)[√] Network resources
The text was updated successfully, but these errors were encountered:
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
When I run my app with the above code I get this warning in the Debug Console:
This warning was added to Flutter in July 2024. Here is the relevant change.
My app doesn't even have the Windows platform but adding it doesn't change the error message.
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
12.0.0+1
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: