【问题标题】:How to fix the error caused: pub get failed(69)如何修复导致的错误:pub get failed(69)
【发布时间】:2019-11-10 01:01:22
【问题描述】:

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

发布失败(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)

【问题讨论】:

    标签: flutter dart dart-pub flutter-test


    【解决方案1】:

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

    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
    

    【讨论】:

      猜你喜欢
      • 2022-06-11
      • 1970-01-01
      • 2020-09-05
      • 1970-01-01
      • 1970-01-01
      • 2023-04-11
      • 2022-11-29
      • 2012-09-22
      • 1970-01-01
      相关资源
      最近更新 更多