简体   繁体   中英

Does Google Firebase work on Android version 4.4.2(kitkat)?

I am building an app using the firebase database I have used in gradle:

compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'

But my app works well in android lollipop, marshmallow and nougat very well but doesn't work at all in android kitkat. Whenever I run app, it doesn't crash but it is not able to read or write data from firebase. Please help me in this case.

Yes, it does

read the prerequisites in the following link

https://firebase.google.com/docs/android/setup

I had the same problem, I managed to solve it after couple of hours,
The problem was with the play services ,
Android Studio Was giving a warning that
Google Play services out of date. Requires 10298000 but found 9256032
In short your phone has low version of play services installed than what it is needed. To solve this you can use a lower version of play services in your gradle file.

compile 'com.google.firebase:firebase-database:9.0.2'
compile 'com.google.firebase:firebase-auth:9.0.2'
compile 'com.google.firebase:firebase-core:9.0.2'
compile 'com.google.firebase:firebase-crash:9.0.2'
compile 'com.google.firebase:firebase-storage:9.0.2'

or you can also update the google play services from play store

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM