Workmanager.registerOneOffTask (package:workmanager/src/workmanager.dart:187)
**Output of `flutter doctor -v`**
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.5, on macOS 13.4 22F66 darwin-x64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Community Edition (version 2022.2)
[✓] VS Code (version 1.78.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
! Doctor found issues in 2 categories.
i tried example , and get the same error
Version
Describe the error PlatformException(unhandledMethod("registerOneOffTask") error, Unhandled method registerOneOffTask, null, null) StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607) MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167)