报错信息
Error on line 30, column 5 of pubspec.yaml: A dependency may only have one source.
╷
30 │ ┌ sdk: flutter
31 │ │ date_format: ^1.0.8
32 │ │
33 │ │ # For information on the generic Dart part of this file, see the
34 │ │ # following page: https://dart.dev/tools/pub/pubspec
35 │ │
36 │ └ # The following section is specific to Flutter.
╵
pub get failed (65; ╵)
报错主要就是导入的三方库名字没有与flutter_test对齐。有点坑 对齐过后就行了
dev_dependencies:
flutter_test:
sdk: flutter
date_format: ^1.0.8
改为
dev_dependencies:
flutter_test:
sdk: flutter
date_format: ^1.0.8
网友评论