android - 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'
解决方案
推荐阅读
- .net-core - 尝试配置多个 .NET Core 管道,HttpContext 最终为 null
- node.js - 使用 Node.js TCP 服务器处理数据时是否可能遇到竞争条件?
- java - Oracle Java:将 java.sql.Blob 数据类型转换为 Oracle BLOB 数据类型时出错
- c# - 引用 .NET Standard 类库的 .NET windows 窗体项目和 UWP 项目:
- r - 迭代R中的列表
- python - 将“文件路径”列添加到 pandas DataFrame
- react-native - 如何使用 react-native-svg 模块以编程方式将 SVG 元素添加到组件?
- limit - 为什么A-Frame的人脸限制这么低?
- c# - 我正在尝试建立一个积分系统来确定 4 名玩家之间的获胜者
- informatica - 生成 informatica 映射以节省开发工作量