question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

new gradle `pluginManagement` do not find plugin `com.google.gms.google-services`

See original GitHub issue

Following the new instructions to add google-services to my Android project I get this error:

org.gradle.internal.exceptions.LocationAwareException: Build file '.../app/build.gradle.kts' line: 1
Plugin [id: 'com.google.gms.google-services', version: '4.3.10'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.google.gms.google-services:com.google.gms.google-services.gradle.plugin:4.3.10')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    Google
    MavenRepo

As per instruction my settings.gradle.kts contains

pluginManagement {
  repositories {
    gradlePluginPortal()
    google()
    mavenCentral()
  }
  plugins {
    id("com.android.application") version "7.1.0-alpha13"
    id("com.android.library") version "7.1.0-alpha13"
    id("org.jetbrains.kotlin.android") version "1.5.21"
    id("com.google.gms.google-services") version "4.3.10" // <------
  }
}

while in my app/build.gradle.kts I’ve added:

plugins {
    id("com.android.application")
    kotlin("android")
    id("com.google.gms.google-services") // <-----
}

The instructions actually tells me to skip the declaration in the settings.gradle.kts and put the version directly in the app, I’ve tried that too, same result.

However, if I add in the root build.gradle.kts the legacy

buildscript {
  dependencies {
    classpath("com.google.gms:google-services:4.3.10")
  }
}

gradle can sync and it works as expected.

Isn’t the new way supposed to replace the legacy one?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
davidmotsoncommented, Dec 13, 2021

Hello, this should be resolved now, as the extra artifact is now released to gmaven.

0reactions
plnicecommented, Nov 25, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin with id 'com.google.gms.google-services' not found
Had the same problem. Fixed by adding the dependency classpath 'com.google.gms:google-services:3.0.0'. to the root build.gradle .
Read more >
The Google Services Gradle Plugin
Q: When building I get the following error message: "File google-services. json is missing from module root folder. The Google Services Plugin cannot...
Read more >
play-services-plugins/README.md at master - GitHub
Google Services Gradle Plugin. This plugin converts the google-services.json file for Firebase into a set of resources that the Firebase libraries can use....
Read more >
ISSUE: Could not compile build file, startup failed - Help/Discuss
FAILURE: Build failed with an exception. Where: Build file 'C:\Users\crazy\AndroidStudioProjects\DERCO\app\build.gradle' line: 6.
Read more >
Plugin with id 'com google gms google services' not found
error with Plugin with id 'com google gms google services ' not found in android ... watch: "ዳኘ ዋለ ለብልበው dagne wale leblibew...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found