首页 > 解决方案 > Firebase 根本不工作,没有错误消息

问题描述

我有 NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl implementation Firebase authentication

我使用了这个答案,现在没有使用 firebase 的活动出现,也没有错误消息

应用程序.gradle

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.google.firebase:firebase-messaging:17.4.0'
    implementation 'com.google.firebase:firebase-auth:16.2.0'
    implementation 'com.google.android.gms:play-services-auth:16.0.1'
    implementation 'com.android.support:multidex:1.0.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.google.android.gms:play-services:12.0.1'
}
apply plugin: 'com.google.gms.google-services'

标签: androidfirebase

解决方案


推荐阅读