Flutter: Firestore component is not present

后端 未结 5 1607
心在旅途
心在旅途 2020-12-22 07:00

I have a problem with Firestore database under Flutter. I have done everything, what the package setup documentation says, looked into 2-3 finished public application, and t

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-22 07:41

    I also have the same issue after I update my cloud_functions package to 0.4.0. I tried out varies combination and I got this configuration working:

        dependencies {
            classpath 'com.android.tools.build:gradle:3.4.1'
            classpath 'com.google.gms:google-services:4.2.0'
        }
    

    Note that according to the official documentation, Flutter is currently compatible with version 3.2.1 of the Google Services Plugins. I did not do a full test based on 4.2.0 of the Google Services Plugins. So far, Firebase Authentication, Cloud Functions, and Firestore work fine.

提交回复
热议问题