【发布时间】:2020-10-17 20:22:47
【问题描述】:
我尝试添加依赖项:
english_words: ^3.1.5 在我的 pupsec.yaml 文件中,当我尝试使用 Flutter Pub Get 命令时出现此错误: Mathiass-MacBook-Pro:startuplabs_0 mathiassoderlund$ flutter pub get
pubspec.yaml 第 34 行第 5 列的错误:依赖项可能只有一个源。
╷
34 │ ┌ sdk: 颤振
35 │ │
36 │ 依赖关系:
37││颤动:
38 │ │ sdk:颤振
39 │ │
40 │ │
41 │ │ 英文单词:^3.1.5
42 │ │
43 │ │ # 有关此文件的通用 Dart 部分的信息,请参阅
44 │ │ # 后续页面:https://dart.dev/tools/pub/pubspec
45 │ │
46 │ └ # 以下部分是 Flutter 特有的。
╵
Running "flutter pub get" in startuplabs_0...
pub get failed (65; ╵)
Mathiass-MacBook-Pro:startuplabs_0 mathiassoderlund$
这是我的 pupspec.yaml 文件:Pupspec.yaml
【问题讨论】: