问题描述
我正在做一个 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"