Flutter pub 获取约束
Flutter pub get constraints
我正在做一个 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, because corona_app depends on both firebase_core ^0.5.3 and firebase_auth ^0.8.0, 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"
我正在做一个 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, because corona_app depends on both firebase_core ^0.5.3 and firebase_auth ^0.8.0, 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"