Get Firebase to work with java, not Android

谁都会走 提交于 2019-11-29 10:47:32

There are two parts to Firebase's Java offering, each with different dependencies:

Firebase Java client library - Use this to access the Firebase realtime database.

The docs lean a bit towards Android, but it works great in Java and languages that can call out to Java (e.g. Groovy)

Firebase Simple Login library - This makes auth easier, but you can handle auth yourself if you prefer.

This library is Android only. In general, authentication usually ends up with a bunch of platform specific tricks. This library focuses on the Android set of those tricks.

It sounds like you want auth in libgdx. Can you expand your question to include a bit more about your expected use case?

(copied from @Ossama's comment above)

Firebase client comes in 2 flavors. One is with Android and other is for JVM. Unfortunately by default you will get Android version only.

You will find out JVM version from change log.

Sep 24, 2015 - Version 2.4.0 (Android) (JVM)

I think using JVM jar will resolve this problem.

Old comments: Please use following jar for Java SDK https://cdn.firebase.com/java/firebase-client-jvm-2.4.0.jar

I got above link https://www.firebase.com/docs/android/changelog.html

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