Skip to content

[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.

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

Open
3 of 5 tasks
stefan-sherwood opened this issue May 5, 2025 · 0 comments

Comments

@stefan-sherwood
Copy link

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Steps to reproduce

import 'package:permission_handler/permission_handler.dart';

await [Permission.bluetooth, Permission.bluetoothConnect, Permission.locationWhenInUse].request();

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
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