【发布时间】:2018-06-14 18:36:12
【问题描述】:
我将应用程序中的 app 模块重命名为 presentation 模块。
- 我将 google-services.json 放在我的演示文稿中/
- 已添加
classpath "com.google.gms:google-services:3.1.0" - 添加插件:
apply plugin: 'com.google.gms.google-services'
当我尝试同步 gradle 时,我得到了错误:
Error:Execution failed for task ':presentation:processDebugGoogleServices'.
No matching client found for package name 'ru.company.acitive.activelife'
我的 build.gradle sn-p:
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"
}
我的演示文稿/build.gradle sn-p:
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'
【问题讨论】: