Flutter Plugin Compatibility Issue: Unresolved Reference to FlutterPluginRegistry in zohodesk_portal_apikit
I am integrating the zohodesk_portal_apikit Flutter plugin (version 2.2.1) into my Flutter project, but I am encountering a build error related to an unresolved reference to FlutterPluginRegistry in the file ZDPBaseActivityAwarePlugin.kt. Below is the error message:
Unresolved reference: FlutterPluginRegistry
file: .../zohodesk_portal_apikit-2.2.1/android/src/main/kotlin/com/zoho/desk/asap/apikit/zohodesk_portal_apikit/ZDPBaseActivityAwarePlugin.kt
This occurs when building with Flutter SDK version 3.29.3. It appears the plugin is using APIs that are no longer available in recent Flutter versions.
Steps to reproduce:
- Add
zohodesk_portal_apikit: ^2.2.1 to pubspec.yaml - Run
flutter pub get - Attempt to build the project
Additional Info:
- Flutter version: (Channel stable, 3.29.3, on macOS 15.5 24F74 darwin-arm64, locale en-US)
- Dart version: 3.7.2
- Plugin version: 2.2.1
- Platform: Android
Could you please advise if there is a fix or an updated version of the plugin compatible with the latest Flutter SDK? If not, is there a recommended workaround?
Thank you for your assistance.
Best regards,
Muyiwa Oyinloye
OjaNow