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
cloud_firestore uses or overrides a deprecated API #36014
Comments
After upgrading to flutter 1.7 I got these warnings. But I then ran |
That did not solve it for me. |
Same error here, and |
I have a similar issue:
|
Please fix this, happens after upgrade flutter. |
same for me
|
I have the same issue and already ran flutter pub upgrade Note: /Users/fidel/development/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.8/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses or overrides a deprecated API. $ flutter doctor [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) |
I somehow resolve my error running flutter upgrade from the command line and then restarting my computer. And then from the terminal inside my visual studio project I ran flutter build apk --split-per-abi Not sure if this would work for everyone but it did for me. Btw, the warnings are still showing up but at least I was able to build the apk |
I think the warning has been there for a long time, but only shows up when the apk is rebuilt, e.g. after flutter version upgrade or running |
For me work just change the minSDKVersion to 23 in the app build.gradle. |
This worked for me too |
It didn't worked for me ! |
I'm having the same issue, compiles to an android device but won't make a bundle.
Flutter Doctor - v
SOLVED |
I worked for me too, thanks! |
This worked for me too! |
i have the same issue with minSDKVersion already set to 23.
|
This worked for me, ty |
In the app level build.gradle update your androidX dependencies, for me worked changing to this versions
My minSdkVersion is 19 so don't know if needed to update to 23 |
Same for me, warning only shows up when building the app after a 'flutter clean' |
yes this worked for me |
worked for me too |
This issue has been moved to firebase/flutterfire#1215. Any further collaboration will be done there. |
Launching lib\main.dart on Android SDK built for x86 64 in debug mode... registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) Note: E:\Andriod\flutter.pub-ache\hosted\pub.dartlang.org\cloud_firestore-0.12.9+5\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: E:\Andriod\flutter.pubcache\hosted\pub.dartlang.org\cloud_firestore-.12.9+5\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Built build\app\outputs\apk\debug\app-debug.apk. error message from when i open the app java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap; |
@p02rosea solved! Thanks..
|
It doesn't work for me |
I just compiled using minSDKVersion 23, then recompiled again to 28. Seems to work like that. |
works perfectly .... thanks |
|
Worked for me. Thanks. |
Work for me. Thanks. |
This worked for me 😃 |
I had the same issue.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I see this in the build:
The text was updated successfully, but these errors were encountered: