I'm trying to use the Firebase from Android Studio but I've made the settings on the Google website itself, and the message that appears to me is:
Gradle 'MeuProjeto' project refresh failed Error:A problem occurred configuring root project 'Meu Projeto'.
Iaskforthehelpofsomeone,belowmyGradlecode.
//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscript{repositories{jcenter()}dependencies{classpath'com.android.tools.build:gradle:2.2.0'//NOTE:Donotplaceyourapplicationdependencieshere;theybelong//intheindividualmodulebuild.gradlefiles//Addthislineclasspath'com.google.gms:google-services:3.0.0'}}allprojects{repositories{jcenter()}}taskclean(type:Delete){deleterootProject.buildDir}//Addtothebottomofthefileapplyplugin:'com.google.gms.google-services'
AnotherGradleFile
applyplugin:'com.android.application'android{compileSdkVersion24buildToolsVersion"24.0.0"
defaultConfig {
applicationId "bbac.cursoandroidstudio"
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-messaging:9.6.1'
}