When compiling my Flutter mobile app for Android (seating an APK) I get the following warnings:
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Note: /Users/ez/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.6/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: /Users/ez/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.12.6/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/ez/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+6/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
There are numerous questions like this on StackOverflow, each one is answered with a different set of plugins versions.
What I did: 1. I've updated my plugins to the latest versions:
dependencies:
flutter:
sdk: flutter
# firebase & firestore
firebase_core: ^0.4.0+6
cloud_functions: ^0.4.0+2
cloud_firestore: ^0.12.6
firebase_storage: ^3.0.2
firebase_auth: ^0.11.1+7
# notifications
firebase_messaging: ^5.0.4
- I've updated android -> build.gradle to:
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.google.gms:google-services:4.2.0' // Google Services plugin
}
- I've updated gradle.properties to:
android.useAndroidX=true
android.enableJetifier=true
I have to admit I'm not that familiar with all that gradle and dependencies... Isn't there a proper way to sort all these dependencies out?
These are not errors. These are notes, i.e. deprecation warnings.
You do not have to worry about it at all. The team developing the Firestore plugin are the only people that need to worry about this and if they think that it is fine for the plugin to use deprecated methods and everything works, there is no problem.
This also means that if your app is not working properly, e.g. not starting, you have a different problem. The logs you posted are completely fine and should not cause any issues.
My conclusion here would be that there is absolutely nothing wrong with what you have posted.