1 回答

TA貢獻(xiàn)1777條經(jīng)驗(yàn) 獲得超10個(gè)贊
是的,所以我經(jīng)歷過同樣的問題。這里的問題是文檔與 PR 不同步:更改文檔的 PR 已合并,但您使用的插件 firebase_auth 尚未更改,因此您仍然擁有舊插件和新文檔 ..所以解決方案是:
你必須像下面這樣在你的 pubspec 依賴項(xiàng)中精確提交插件:
firebase_auth:
git:
url: https://github.com/FirebaseExtended/flutterfire
path: packages/firebase_auth/firebase_auth
ref: 4a05ceba74c805bc5528137d40c75865cd21d687
并且也在 dependencies_override 下面,像這樣(如果不存在,添加它,在 dev_dependencies 部分下面):
dependency_overrides:
firebase_auth_web:
git:
url: https://github.com/FirebaseExtended/flutterfire
path: packages/firebase_auth/firebase_auth_web
ref: 4a05ceba74c805bc5528137d40c75865cd21d687
firebase_auth_platform_interface:
git:
url: https://github.com/FirebaseExtended/flutterfire
path: packages/firebase_auth/firebase_auth_platform_interface
ref: 4a05ceba74c805bc5528137d40c75865cd21d687
順便說一句,你需要覆蓋依賴項(xiàng)的原因是因?yàn)?firebase_auth 插件,精確提交仍然使用舊版本的 flutter web 插件
添加回答
舉報(bào)