Когда я запускаю тесты моего приложения, я получаю это исключение:
NoSuchMethodError: Attempted to use type 'SimplePipe' as a function. Since types do not define a method 'call', this is not possible. Did you intend to call the SimplePipe constructor and forget the 'new' operator?
Я заключаю из этого сообщения об ошибке, что мой проект на самом деле использует не Dart 2.0, а Dart 1.0.Однако для sdk установлено значение >=2.0.0-dev.53.0 <2.0.0
в pubspec.yaml
.
Мой друг получает это сообщение об ошибке при запуске тех же тестов в тех же условиях на своем ПК.Он уже пытался запустить pub get
.
Dart 2.0.0-dev.54.0.flutter-46ab040e58 is incompatible with your dependencies' SDK constraints. Please run "pub get" again
pubspec.yaml
:
name: timecoder_common
description: A Dart Libary containin all the shared logic
version: 0.0.1
environment:
sdk: '>=2.0.0-dev.53.0 <2.0.0'
dependencies:
uuid: "^0.5.3"
json_annotation: "^0.2.3"
http: "^0.11.3"
rxdart: "^0.16.6"
test: "^0.12.34"
dev_dependencies:
build_runner: "^0.8.0"
json_serializable: "^0.5.0"