【发布时间】:2018-06-23 00:43:37
【问题描述】:
当我尝试将我的应用连接到 Firebase 时出现此错误。
下面是app/build.gradle中的依赖
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'
implementation 'androidx.constraintlayout:constraintlayout:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha3'
implementation 'com.google.firebase:firebase-core:16.0.0'
}
apply plugin: 'com.google.gms.google-services'
【问题讨论】:
-
检查您的 gradle.properties 项目文件以包含 android.useAndroidX=true 和 android.enableJetifier=true。
-
非常感谢!!这解决了问题!
标签: android firebase android-studio