[cloud_firestore] uses or overrides a depreacated API /unchecked or unsafe operations. PathProvider Plugin uses or override a deprecated API , SharedPreferences Plugin has been deprecated
I ma developing an app with firestore, pathprovider , sqflite db, and sharedpreferences ... and I am using minSDKVersion 23, I don't know why it shows up after i do flutter clean ..
Note: F:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.12.11\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: F:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.12.11\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: F:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-1.6.0\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
F:\Flutter\flutter\.pub-cache\hosted\pub.dartlang.org\shared_preferences-0.5.6+1\android\src\main\java\io\flutter\plugins\sharedpreferences\SharedPreferencesPlugin.java:25: warning: [deprecation] getFlutterEngine() in FlutterPluginBinding has been deprecated
setupChannel(binding.getFlutterEngine().getDartExecutor(), binding.getApplicationContext());
^
1 warning
and here is my output for flutter doctor
[ظê?] Flutter (Channel stable, v1.12.13+hotfix.7, on Microsoft Windows [Version 6.3.9600], locale en-US)
[ظê?] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[ظê?] Android Studio (version 3.5)
[ظê?] Connected device (1 available)
No issues found!
same issue my firestore version: cloud_firestore: ^0.11.0
Hi @sunaarun Please look at this answer Closing, as this isn't an issue with Flutter itself, if you disagree please write in the comments and I will reopen it Thank you
Hi @sunaarun Please look at this answer Closing, as this isn't an issue with Flutter itself, if you disagree please write in the comments and I will reopen it Thank you
Hey @iapicca , I see this warning only after do flutter clean , I don't know why this appear to me .. and I tried to search for a solution to remove this warning , all i did doesn't remove the warning .. and I saw the answer , what i understand is to update the plugins i used in app ?! .. please can you help me and explain to me
I have this too. I tried enabling Lint to get more details, but that didn't work. A flutter clean is required to see this.
I think the deprecation warning is related to getFlutterEngine being deprecated.
Closing this. Please see @awhitford's comment above (https://github.com/FirebaseExtended/flutterfire/issues/1921#issuecomment-589983838) for more information.