skip to Main Content

I updated today Android Studio to Giraffe. I found that the latest version for com.google.gms.google-services is 5.0.0

When I try to sync the project, I get this error:

Plugin [id: ‘com.google.gms.google-services’, version: ‘5.0.0’, apply: false] was not found in any of the following sources

Here are all my plugins:

plugins {
    id 'com.android.application' version '8.1.0' apply false
    id 'com.android.library' version '8.1.0' apply false
    id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
    id 'com.google.gms.google-services' version '5.0.0' apply false
}

If I downgrade to ‘4.3.15’ version, everything works fine.

How to overcome this error?

2

Answers


  1. Try to add following dependency to the root build.gradle file:

    classpath 'com.google.gms:google-services:5.0.0'

    Login or Signup to reply.
  2. **1st Method**
    
    Add this to gradle
    implementation 'com.google.gms.google-services:com.google.gms.google-services.gradle.plugin:4.3.15'
    
    **2nd Method**
    -> Go to  Project Structure
    -> Dependencies then Library Dependencies 
    -> Click on + and Paste this com.google.gms.google-services
    -> Tap on Search
    -> Add available depe
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search