问题
I'm developing an android app and I'm using GeoFire
library in it.
I have updated all of my code as per the latest version of Firebase
, but I failed in updating GeoFire
to the latest version which is causing a code conflict.
Even on the github website of geofire, there is no such information.
Upon running the app with old geofire version, I'm getting this error: Caused by: java.lang.RuntimeException: You need to set the Android context using Firebase.setAndroidContext() before using Firebase.
on this line geoFire = new GeoFire(new Firebase("https://appname.firebaseio.com/appDetails/"));
And upon adding Firebase.setAndroidContext(this);
again, I'm getting this error: Caused by: java.lang.RuntimeException: Android classes not found. Are you using the firebase-client-android artifact?
How to update to the latest version of GeoFire
?
Please let me know.
回答1:
Same here! Watch out for the new update. Check out this OPEN Issues on Github. Once resolve, we'll be able to get the latest library.
Hoping this will be done as soon as possible. JavaScript has been updated already. Android / iOS still on process.
来源:https://stackoverflow.com/questions/37625887/how-to-update-geofire-library-to-the-latest-version