【发布时间】:2019-02-23 20:22:07
【问题描述】:
我正在尝试在颤振应用程序中使用 FirebaseAuth。我可以使用 Firestore 服务,但是当我在 pubspec.yaml 文件中包含 firebase_auth 依赖时,我得到了以下异常。
FAILURE:构建失败并出现异常。 * 出了什么问题:任务 ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' 执行失败。 > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: 无法合并 dex * 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获取 更多日志输出。 * 在 https://help.gradle.org 获得更多帮助这是我的 pubspec.yaml 文件
依赖项: 扑: sdk:颤动 国际:^0.15.6 #firebase_core:^0.2.2 google_sign_in: 混帐: 网址:http://github.com/jahirhstu/flutter_plugins.git 路径:包/google_sign_in #firebase_analytics: # 混帐: # 网址:http://github.com/jahirhstu/flutter_plugins.git # 路径:包/firebase_analytics firebase_auth: 混帐: 网址:http://github.com/jahirhstu/flutter_plugins.git 路径:包/firebase_auth cloud_firestore: 混帐: 网址:http://github.com/jahirhstu/flutter_plugins.git 路径:包/cloud_firestore 库比蒂诺图标:^0.1.0 神社图片:1.0.0 dev_dependencies: 颤振测试: sdk:颤动【问题讨论】:
标签: firebase firebase-authentication flutter