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

enyaitl3  于 2023-04-07  发布在  Flutter
关注(0)|答案(2)|浏览(647)

我在运行Flutter的应用程序时遇到问题。
pub get失败(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

我期望输出接收退出代码,但它告诉我pub get失败(69)

fumotvh3

fumotvh31#

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

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
gj3fmq9x

gj3fmq9x2#

主要问题是网络。有时“flutter pub get”返回“退出代码:69”因为网络问题。你可以检查你的网络,你可以改变使用VPN。

相关问题