-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛 [core, auth, analytics] Usage of deprecated APIs #3876
Comments
There is already an open issue for analytics #1389 I can confirm this as reproducible. flutter doctor -v
|
#1389 is a really old issue - is it ongoing development on this plugin? Same problem with deprecated api. |
Warnings are thrown on iOS |
Still have the same problem, Screen reporting not working on IOS and Android, any solution? |
Same error... |
Same issue here, any solution? |
@aghyad97 |
@sidrao2006 It is affecting the app when it launches, it wasn't the case before. |
Any Solution? |
Same here |
the error did’t crashing compilation. |
The problem is not only the compilation warnings. As #2315 (closed in favor of this issue) points out, the |
The feature mentioned above is really in demand. A purchase feature where you track the |
We are need this fix. Why is there such an easy-to-fix bug, but important for analytics still exists? |
Any solutions for this? Can't even compile at this point. |
please provide any solution or workaround for this. |
For everyone commenting for a solution here. These are just warnings thrown during compilation. If your app did not compile then this has absolutely nothing to do with it. There are a vast number of frameworks out there that will throw these warnings. This issue is just here to track that they exist here as well, for whatever reason. Moreover this repository only wraps the upstream Firebase native SDKs so that they could be used with Flutter. Please look through your build logs carefully to find the actual reason it failed. |
@markusaksli-nc Aha. But in analytics report I wanna see correct and not deprecated event |
I'm not saying that these messages shouldn't be resolved somewhere, only that they will not cause a build to fail. If you want them to disappear you will need to simply wait for this to be resolved. The issue exists here to track this. |
It's not only compiler warnings. It is also the in-ability to use up to date Firebase events. See my comment above. |
Make sure you disable your VPN and/or try switching between networks. This fixed the problem for me. It might be related to your network port. |
change minSdkVersion to 21 in app/build.gradle |
have issues on the version of the dependencies, settings.graddle, If you have this issues again, follow this link: firebase/flutterfire#3876
Suffered the error of FlutterFirebaseCorePlugin.java uses or overrides a deprecated API. for two days. Found that the error comes from the sound null safety implementation which grey lists all incompatible API |
my issue resolved. File → Invalidate Caches / Restart(android studio). |
I do get the warnings for a few packages (firebase core, cloud firestore, firebase auth and firebase storage). I also noticed that if I build the app more than once without |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Why would updating any android configs get rid of these warnings? These stem from the plugin code itself using deprecated APIs. |
Any update on this? I am having the same issue Note: /home/idrees/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.4.0/android/src/main/java/io/flutter/plugins/firebase/core/FlutterFirebaseCorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/idrees/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-3.0.1/android/src/main/java/io/flutter/plugins/firebase/auth/FlutterFirebaseAuthPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details. I am using the latest version (as of today): firebase_auth: ^3.0.1
firebase_core: ^1.4.0 |
This comment has been minimized.
This comment has been minimized.
if your minSdkVersion is set to 20 or lower, then you must use the multidex support library and make the following modifications to your app project: Open the /android/app/build.gradle file. Under dependencies add the multidex module, and enable it within the defaultConfig
|
We are currently reworking the |
Absolutely, for the Arctic fox upgrade I made my minimum sdk 24. It worked. Please also upgrade the Gradle to V7, update the path in Env. Variables for Windows ( upgraded Gradle is prompting me with no Settings.gradle , but it works and builds the app) Please also do a flutter upgrade in PowerShell or cmd. |
Closing as this was fixed in #7127 - thanks for the report |
Bug report
Describe the bug
Usage of deprecated APIs
Steps to reproduce
Run app
Logs
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: