gpt4 book ai didi

flutter - 如何修复导致: pub get failed(69)的错误

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

我在运行 Flutter 应用程序时遇到问题。

pub get failed(69)

我试过使用 firebase_storage: anyfirebase_storage: ^1.0.4

version: 1.0.0+1

environment:
sdk: ">=2.1.0 <3.0.0"

dependencies:
flutter:
sdk: flutter

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
firebase_auth: ^0.8.1+2
firebase_database: ^0.4.6
firbase_storage: any
firebase_core: any
intl: ^0.15.7
image_picker:



dev_dependencies:
flutter_test:
sdk: flutter

我预计输出会收到退出代码 0,但它却告诉我 pub get failed (69)

最佳答案

这是由于以下代码中不需要的空格而发生的

dependencies:
flutter:
sdk: flutter

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
firebase_auth: ^0.8.1+2
firebase_database: ^0.4.6
firbase_storage: any
firebase_core: any
intl: ^0.15.7
image_picker:

您可以使用 YAML验证器检查 yaml 文件中的问题。

像这样尝试一次:

version: 1.0.0+1

environment:
sdk: ">=2.1.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
firebase_auth: ^0.8.1+2
firebase_database: ^0.4.6
firbase_storage: any
firebase_core: any
intl: ^0.15.7
image_picker:



dev_dependencies:
flutter_test:
sdk: flutter

关于flutter - 如何修复导致: pub get failed(69)的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56800642/

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