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 tried to use the package as others use. I even tried to implement native Firestore initialization, because i think the problem is on the platform side, but still, the application get
java.lang.NullPointerException: Firestore component is not present.
when i try to use the Firestore instance.
In project/build.gradle I set
classpath 'com.google.gms:google-services:4.0.1'
for dependency and also imported
'com.google.firebase:firebase-core:16.0.1'
'com.android.support:multidex:1.0.3'
I have the google-service.json in my app folder.
Can anyone help me with this problem? I wasted a day, and still nothing. Thanks a lot!