buildscript {
repositories {
// ...
google()
}
dependencies {
// ...
// Add this line
classpath 'com.google.gms:google-services:4.3.5'
}
}
apply plugin: 'com.android.application'
// Add this line
apply plugin: 'com.google.gms.google-services'
android {
// ...
}
dependencies {
// ...
// Add the Firebase Authentication dependency
implementation 'com.google.firebase:firebase-auth:19.3.2'
}
上一篇:build.gradle中Kotlin的依赖关系不完整
下一篇:build.gradle中使用自定义配置时,module-info.java中的Dependencies('requires')无法解析