Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google-services.json No matching client found for package name with any module

I renamed my app module in application to presentation module.

  • I put google-services.json in my presentation/
  • Added classpath "com.google.gms:google-services:3.1.0"
  • Added plugin: apply plugin: 'com.google.gms.google-services'

And when i try Sync gradle, i get error:

Error:Execution failed for task ':presentation:processDebugGoogleServices'.
No matching client found for package name 'ru.company.acitive.activelife'

My build.gradle snippet:

dependencies {
    classpath "com.android.tools.build:gradle:$android_plugin_version"
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath "com.google.gms:google-services:3.1.0"
}

My presentation/build.gradle snippet:

dependencies {

...

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
apply plugin: 'com.google.gms.google-services'
like image 638
punchman Avatar asked Oct 27 '25 15:10

punchman


1 Answers

That means your app's application ID is "ru.company.acitive.activelife", but that same string wasn't found in your google-services.json file.

Looks like there's a typo in the part where it says "acitive". Should it be "active" instead?

like image 175
Doug Stevenson Avatar answered Oct 29 '25 05:10

Doug Stevenson