【发布时间】:2019-05-09 19:57:01
【问题描述】:
在运行 flutter packages get 命令时出现以下错误。
在我添加以下插件时开始出错。
flutter_native_image:
git: https://github.com/btastic/flutter_native_image.git
即使删除插件后,我仍然遇到同样的错误!
我正在尝试添加flutter_native_image插件
pubspec.yaml
name: login_authentication
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.0.0-dev.68.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:
firebase_storage:
google_sign_in:
image_picker:
dev_dependencies:
flutter_test:
sdk: flutter
# The following section is specific to Flutter.
flutter:
uses-material-design: true
【问题讨论】:
-
显示你的 pubspec
-
您的环境错过了该颤振语句,并且在您的依赖项中颤振之后写了一点 '
-
明白了!非常感谢
-
我认为在添加 flutter_native_image 依赖项时我犯了那个错误!我以为项目坏了。但是非常感谢@VidorVistrom
-
很高兴听到这个消息:)