google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used

15,937

I have added this line at last in build.gradle:(Module: app)

 apply plugin: 'com.google.gms.google-services'

and it started working I don't know what is concept behind this?
but it is working

Share:
15,937
Lokesh Tiwari
Author by

Lokesh Tiwari

On a mission to transform 1Cr life by educating money management & helping people to achieve financial freedom. Everything started when I lost my years of saving due to a lack of financial literacy that made me realize the importance of financial education & now I mentor people to manage personal finance & create wealth. After Co-founding a start-up WorkIndia & Developing an App that has been downloaded by 2.5Cr people & still counting, It is hard to start a new career but I love helping people so I am starting a new career. Love you stack overflow & thanx for making me a moderator I will keep visiting

Updated on June 08, 2022

Comments

  • Lokesh Tiwari
    Lokesh Tiwari about 2 years

    I am integrating fire-base to my existing project used these libs

       compile 'com.google.firebase:firebase-auth:9.0.2'
    compile 'com.google.firebase:firebase-database:9.0.2'
    compile 'com.google.android.gms:play-services:9.0.2'
    

    Dependencies

        dependencies {
        classpath 'com.android.tools.build:gradle:2.1.2'
        classpath 'com.google.gms:google-services:3.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    

    I am getting this error

    Error:Execution failed for task ':app:processDebugGoogleServices'.
    

    Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.

    Not able to figure out what is happening ??

    These are my play services verison enter image description here

  • Alexander Talavari
    Alexander Talavari almost 8 years
    Ty. I had it on the top migrating from GCM and was banging my head 2 hours why it didn't work