【发布时间】:2021-03-26 19:55:22
【问题描述】:
尝试在flutter中添加本地包但出现错误:
Error on line 42, column 5 of pubspec.yaml: Invalid version constraint: Could not parse version "path:../hello/". Unknown text at "path:../hello/".
╷
42 │ path:../hello/
│ ^^^^^^^^^^^^^^
╵
pub get failed (65; ╵)
pubspec.yaml:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.0
hello:
path:../hello/
我尝试使用 tab 和 space 缩进路径,但没有成功。
【问题讨论】:
-
你是真的用
path:../hello/还是只是一个例子? -
你好是插件的名字
标签: flutter dart flutter-dependencies