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'