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

2019-07-27 22:54发布

问题:

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.

回答1:

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/



回答2:

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!



回答3:

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'