Android Firebase

0

I'm starting with Android Studio 3.1 I created a project in console.firebase.google. To create a database in real time, using Firebase. I followed all the steps indicated: 1 Register app 2 Download files 3 Add Firebase SDK

Add dependencies, plugin, etc. Also, in SDK Tools active: Google Play services. Google Repository was already active. Then click on Sync.

A warning appeared in the lower window, which says: Configuration 'compile' is obsolete and has been replaced with 'implementation'.  It will be removed at the end of 2018.

To solve the Warning, search the web for the solution.  I found that there are several developers that have the same problem. Even on this website but in English. Some indicate that they have solved it, others indicate no.

I changed from compile to implementation. But the line of code fails ... firebase-database. I know that line gives error because if I mention it (//) errors do not appear anymore.

implementation 'com.google.firebase:firebase-database: 15.0.0'  //Esta línea  da error
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

And it is the one that I need to use to be able to work with Databases.

I have already read the procedures several times in link but without results.

If anyone has any ideas from now, thank you.

    
asked by Ace_331 06.05.2018 в 02:15
source

0 answers