I use from Android Studio canary version. I want to use Firebase service. For that I should add this line to root build.gradle file.
classpath 'com.google.gms:google-services:4.3.8'
But my build.gradle file is like this image:
How can I add Firebase in Android Studio
2
The simple way to add Firebase in project Android Studio is
Click tools > select Firebase
After that side bar will display and u can select firebase service what you need
Last, u will see step by step to using this firebase service easily
I hope this will be help you #CMIIW
You can try to edit your build.gradle to look like this:
build.gradle
buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } mavenCentral() } dependencies { classpath 'com.google.gms:google-services:4.3.8' } } allprojects { repositories { mavenCentral() maven { url 'https://jitpack.io' } } } task clean(type: Delete) { delete rootProject.buildDir }
Of course you can reomove lines that you think isn’t useful. XD
Click here to cancel reply.
2
Answers
The simple way to add Firebase in project Android Studio is
Click tools > select Firebase
After that side bar will display and u can select firebase service what you need
Last, u will see step by step to using this firebase service easily
I hope this will be help you
#CMIIW
You can try to edit your
build.gradle
to look like this:Of course you can reomove lines that you think isn’t useful. XD