How to update GeoFire library to the latest version?

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:30:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!