new gradle `pluginManagement` do not find plugin `com.google.gms.google-services`
See original GitHub issueFollowing 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:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, this should be resolved now, as the extra artifact is now released to gmaven.
Also reported here: https://github.com/google/play-services-plugins/issues/50