运行Flutter的应用程序时遇到问题。
发布失败(69)
我尝试使用firebase_storage: any
和firebase_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失败(69)
答案 0 :(得分:2)
这是由于以下代码中的多余空间而发生的
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