flutterfire
flutterfire copied to clipboard
🐛 [firebase_dynamic_links] flutter - build errors after upgrading flutter 3 and latest firebase packages version
Bug report
I've upgraded flutter to version 3 Due to that, I had to upgrade firebase to the following versions:
cloud_firestore: ^3.1.15
firebase_analytics: ^9.1.8
firebase_core: ^1.17.0
firebase_dynamic_links: ^4.2.3
firebase_storage: ^10.2.16
This is the error that I get: `
: Error: 'onLink' isn't a function or method and can't be invoked.
FirebaseDynamicLinks.instance.onLink(
^^...
: Error: The method 'IosParameters' isn't defined for the class 'DynamicLinkService'.
'DynamicLinkService' is from 'package:menikot/shared/helpers/dynamic_link_service.dart' ('lib/shared/helpers/dynamic_link_service.dart').
Try correcting the name to the name of an existing method, or defining a method named 'IosParameters'.
IosParameters(bundleId: "com.$appName", minimumVersion: '0'),
^^^^^^^^^^^^^
: Error: The method 'buildShortLink' isn't defined for the class 'DynamicLinkParameters'.
'DynamicLinkParameters' is from 'package:firebase_dynamic_links_platform_interface/src/dynamic_link_parameters.dart' ('/C:/ngplayground/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links_platform_interface-0.2.3+2/lib/src/dynamic_link_parameters.dart').
Try correcting the name to the name of an existing method, or defining a method named 'buildShortLink'.
ShortDynamicLink urlshort = await parameters.buildShortLink();
^^^^^^^^^^^^^^
`
cloud_firestore: ^3.1.15 firebase_analytics: ^9.1.8 firebase_core: ^1.17.0 firebase_dynamic_links: ^4.2.3 firebase_storage: ^10.2.16
@hoanghoa213 These are still not most up to date versions.
Latest versions are:
firebase_core: ^1.22.0
firebase_dynamic_links: ^4.3.7
firebase_storage: ^10.3.8
https://pub.dev/packages/cloud_firestore/changelog#347
https://pub.dev/packages/firebase_analytics/changelog#934
I suggest you to upgrade to latest and greatest version of each plugin and then run flutter pub upgrade --major-versions and see if you still get same error or not.
Hey @hoanghoa213. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Anu updates on this? I still get the same above mentioned error even though I updated all my firebase related packages to its latest versions.
Please help here . @darshankawar Any solution?
Hey @wangphun. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@wangphun if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.