Jithin Joy
Jithin Joy

Reputation: 176

" Cloud Firestore Override a deprecated API " Error occurs when build the flutter application

" Cloud Firestore Override a deprecated API "

Error occurs when building the flutter application.

Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.11.0+2\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: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.11.0+2\android\src\main\java\io\flutter\plugins\firebase\cloudfirestore\CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\connectivity-0.4.3+1\android\src\main\java\io\flutter\plugins\connectivity\ConnectivityPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Work\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.4.0+1\android\src\main\java\io\flutter\plugins\firebase\core\FirebaseCorePlugin.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.

Upvotes: 2

Views: 1370

Answers (2)

Can Karabag
Can Karabag

Reputation: 1751

minSdkVersion should be 23 at android/app/build.gradle for that cloud_firestore package

Upvotes: 8

Md Abdul Halim Rafi
Md Abdul Halim Rafi

Reputation: 1970

In my case, ->android->app->build.gradle at first I was using library as "compile", changing it to "implementation" my issue got solved

Upvotes: 1

Related Questions