com.firebase:firebase-client-android: VS com.googl

2019-07-27 22:44发布

Today meet some problem where I need to know the detailed difference between

compile 'com.firebase:firebase-client-android:2.4.0'

and

compile 'com.google.firebase:firebase-core:9.6.1' 

Don't make attention to versions

So please share your knowledge.

3条回答
时光不老,我们不散
2楼-- · 2019-07-27 23:11

If you need Firebase Client:

Firebase.getDefaultConfig().setLogLevel(com.firebase.client.Logger.Level.DEBUG);

You need the firebase client library:

dependencies {

    // Firebase
    implementation 'com.firebase:firebase-client-android:2.5.2'
查看更多
叛逆
3楼-- · 2019-07-27 23:17

com.firebase:firebase-client-android is legacy. THEY ARE DEPRECATED AS OF MAY 18, 2016.

com.google.firebase:firebase-core is current

You can check it here

Also if you want to know the differrent beetween theme you can check 2 docs https://firebase.google.com/docs/android/setup
https://www.firebase.com/docs/android/

查看更多
太酷不给撩
4楼-- · 2019-07-27 23:24

The difference is that the first one is deprecated, the first one it is know as firebase 2.X.X and the firebase 3.X.X update use this dependencie compile 'com.google.firebase:firebase-core:9.6.1'.

In this page you can check what you need to install last Firebase SDK and their libraries. Greetings!

查看更多
登录 后发表回答