Skip to content

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

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
Div700 opened this issue May 13, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@Div700
Copy link

Div700 commented May 13, 2025

  • [✓] 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.

@Div700 Div700 added the bug Something isn't working label May 13, 2025
@aldisa546
Copy link

Hi, for temporary solution you could try my forked repository :

workmanager:
    git:
      url: https://github.com/aldisa546/flutter_workmanager.git
      ref: upgrade/flutter-3.29

reference discussion: #588 (comment)

@granxavi
Copy link

You can write on your pubspec.yaml this. But I wonder why, is it being deprecated or something? or just a bug?
workmanager:
git:
url: https://github.com/fluttercommunity/flutter_workmanager.git
path: workmanager
ref: main

@nicolasvahidzein
Copy link

Hello is there an alternative or a maintained fork of this abandoned package? Thanks.

@hrajwade96
Copy link

hrajwade96 commented May 22, 2025

You can write on your pubspec.yaml this. But I wonder why, is it being deprecated or something? or just a bug? workmanager: git: url: https://github.com/fluttercommunity/flutter_workmanager.git path: workmanager ref: main
Was facing the same error.
Due to deprecated APIs - https://docs.flutter.dev/release/breaking-changes/v1-android-embedding
Using this the build error is fixed,
Can this be rolled out to stable with the fix @timrijckaert @ened @jeremie-movify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants