hotkey_manager icon indicating copy to clipboard operation
hotkey_manager copied to clipboard

[Windows] `MissingPluginException` at runtime and dependency warnings due to missing `hotkey_manager_windows` plugin

Open thiwa8 opened this issue 1 year ago • 0 comments

Environment

  • OS: Windows 11 Home (10.0.26100 Build 26100)
  • hotkey_manager Version: ^0.2.3

Problem Description

Using hotkey_manager on Windows results in both dependency resolution warnings and a fatal runtime error.

  1. Dependency Warning: flutter pub get warns that the hotkey_manager_windows package is missing.
  2. Runtime Error: When the application is built and run, it crashes with a MissingPluginException, as the native Windows implementation for the plugin cannot be found.

What I've tried:

  • Running flutter clean and flutter pub get/upgrade.
  • Building the application.

The warnings persist and the application fails at runtime.

Error Outputs

1. Dependency Resolution Warning

Package hotkey_manager:windows references hotkey_manager_windows:windows as the default plugin, but the package does not exist, or is not a plugin package. Ask the maintainers of hotkey_manager to either avoid referencing a default implementation via platforms: windows: default_package: hotkey_manager_windows or create a plugin named hotkey_manager_windows.

2. Runtime MissingPluginException

The application throws the following exception when trying to use the plugin: Fehler beim Erfassen: MissingPluginException(No implementation found for method register on channel dev.leanflutter.plugins/hotkey_manager)

Relevant pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  
  # ... other dependencies
  
  hotkey_manager: ^0.2.3
  win32: ^5.13.0

Conclusion

The missing hotkey_manager_windows plugin is causing both build-time warnings and a runtime crash, making the package unusable on Windows in its current state.

thiwa8 avatar Jun 18 '25 05:06 thiwa8