Skip to content

🐞[Workmanager package not compatible with latest flutter version in android and ios] #599

Closed
@Div700

Description

@Div700
  • [✓] I have read the README
  • [✓] I have done the setup for Android
  • [✓] I have done the setup for iOS
  • [✓] I have ran the sample app and it does not work there

Version

Technology Version
Workmanager version 0.5.2
Xcode version -
Swift version -
iOS deployment target -

Describe the error
After updating to Flutter 3.29.0, the application fails to build with unresolved reference errors in the Workmanager package. The errors are related to missing references to shim, ShimPluginRegistry, and PluginRegistrantCallback.

The error appears to be related to changes in Flutter's plugin architecture in version 3.29.0, where legacy plugin registration mechanisms have been deprecated or removed. I have a tried running the application in android studio.

Output of flutter doctor -v
[✓] Flutter (Channel stable, 3.29.3, on macOS 15.4.1 24E263 darwin-arm64, locale en-IN) [3.5s]
• Flutter version 3.29.3 on channel stable at /Users/ei-india/Desktop/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ea121f8859 (5 weeks ago), 2025-04-11 19:10:07 +0000
• Engine revision cf56914b32
• Dart version 3.7.2
• DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [3.7s]
• Android SDK at /Users/ei-india/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [3.7s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16C5032a
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [9ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2) [8ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)

[✓] VS Code (version 1.97.2) [7ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.104.0

[✓] Connected device (4 available) [6.3s]
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 15 (API 35) (emulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.4.1 24E263 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.4.1 24E263 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.93

[✓] Network resources [529ms]
• All expected network resources are available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions