gpt4 book ai didi

firebase - pubspec.yaml : Expected a key while parsing a block mapping when adding cloud_firestore

转载 作者:IT王子 更新时间:2023-10-29 06:44:02 25 4
gpt4 key购买 nike

在项目的依赖中添加cloud_firestore,按packages get or upgrade时弹出这个错误

Running "flutter packages get" in alaganbyasta... Error on line 7, column 5 of pubspec.yaml: Expected a key while parsing a >block mapping. cloud_firestore: ^0.7.4 ^ pub get failed (65) Process finished with exit code 65

我尝试升级 flutter 本身,但我之前修改了 date_picker.dart 所以他要求我在升级前提交

我的 pubspec.yaml 是

name: alaganbyasta
description: A new Flutter application.
dependencies:
flutter:
sdk: flutter
cloud_firestore: v0.7.4
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true

最佳答案

改变

dependencies:
flutter:
sdk: flutter
cloud_firestore: v0.7.4
cupertino_icons: ^0.1.2

dependencies:
flutter:
sdk: flutter
cloud_firestore: v0.7.4
cupertino_icons: ^0.1.2

关于firebase - pubspec.yaml : Expected a key while parsing a block mapping when adding cloud_firestore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52075072/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com