flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[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

Open sunaarun opened this issue 6 years ago • 6 comments

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!

sunaarun avatar Feb 01 '20 22:02 sunaarun

same issue my firestore version: cloud_firestore: ^0.11.0

kingdg25 avatar Feb 03 '20 09:02 kingdg25

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

iapicca avatar Feb 03 '20 10:02 iapicca

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

sunaarun avatar Feb 03 '20 19:02 sunaarun

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.

awhitford avatar Feb 22 '20 18:02 awhitford

I think the deprecation warning is related to getFlutterEngine being deprecated.

awhitford avatar Feb 22 '20 18:02 awhitford

Closing this. Please see @awhitford's comment above (https://github.com/FirebaseExtended/flutterfire/issues/1921#issuecomment-589983838) for more information.

helenaford avatar Apr 21 '20 15:04 helenaford