Flutter pub 获取约束

问题描述

我正在做一个 Flutter 项目,我的 pubspec.yaml 中需要这些依赖项:

firebase_core : ^0.5.3
firebase_database : ^4.4.0
firebase_auth: ^0.8.0

我收到此错误

Because firebase_auth >=0.8.0+1 <0.10.0 depends on firebase_core ^0.3.0 and firebase_auth >=0.6.5 <=0.8.0 depends on firebase_core ^0.2.5+1,firebase_auth >=0.6.5 <0.10.0 requires firebase_core ^0.2.5+1 or ^0.3.0.
So,because corona_app depends on both firebase_core ^0.5.3 and firebase_auth ^0.8.0,version solving Failed.
pub get Failed (1; So,version solving Failed.)

我按照说明操作,却又遇到了另一个问题。接下来我得到另一个

请帮忙

解决方法

试试这个

firebase_core : any
firebase_database : any
firebase_auth: any
,

尝试更新您的 firebase_auth,直到它再次与 firebase_core 软件包配合使用:

这将是空安全之前的最新版本:

firebase_core: "^0.7.0"
firebase_database: "^6.0.0"
firebase_auth: "^0.20.1"

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...