相关疑难解决方法(0)

Flutter:构建失败,出现异常

我正在尝试在Flutter应用程序中使用FirebaseAuth。我可以使用Firestore服务,但是当我在pubspec.yaml文件中包含firebase_auth权限时,出现以下异常。

失败:构建失败,发生异常。

*出了什么问题:任务':app:transformDexArchiveWithExternalLibsDexMergerForDebug'的执行失败。
> java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex
* Try:Run---stacktrace选项以获取堆栈跟踪。使用--info或--debug选项运行以获取
更多日志输出。

*在https://help.gradle.org上获得更多帮助

这是我的pubspec.yaml文件

依赖项:
  扑:
    SDK:颤振
  国际:^ 0.15.6
  #firebase_core:^ 0.2.2
  google_sign_in:
    git:
      网址:http://github.com/jahirhstu/flutter_plugins.git
      路径:packages / google_sign_in
  #firebase_analytics: 
  #git:
  #网址:http://github.com/jahirhstu/flutter_plugins.git
  #路径:packages / firebase_analytics
  firebase_auth:
    git:
      网址:http://github.com/jahirhstu/flutter_plugins.git
      路径:packages / firebase_auth
  cloud_firestore:
    git:
      网址:http://github.com/jahirhstu/flutter_plugins.git
      路径:packages / cloud_firestore
  cupertino_icons:^ 0.1.0
  shrine_images:1.0.0

dev_dependencies:
  flutter_test:
    SDK:颤振

firebase firebase-authentication flutter

4
推荐指数
2
解决办法
4601
查看次数