运行后出现以下错误flutter upgrade
:
因为来自 sdk 的 flutter_test 的每个版本都依赖于路径 1.5.1 并且 flutter_advanced_networkimage >=0.2.9+1 依赖于路径 ^1.6.0,所以来自 sdk 的 flutter_test 与 flutter_advanced_networkimage >=0.2.9+1 不兼容。因此,因为 testapp 依赖于来自 sdk 的 flutter_advanced_networkimage ^0.2.10 和 flutter_test any,所以版本求解失败。pub 升级失败 (1)
我的pubspec.yaml
:
name: testapp
description: A new Flutter application.
dependencies:
flutter:
sdk: flutter
device_info: "^0.2.0"
shared_preferences: "^0.4.1"
flutter_parallax: "^0.1.1"
cached_network_image: "^0.4.1"
connectivity: "^0.3.1"
chewie: "^0.6.0"
flutter_statusbarcolor: "^0.0.3"
fluro: "^1.3.1"
carousel_slider: "^0.0.4"
flutter_advanced_networkimage: "^0.2.10"
flutter_sticky_header: "^0.3.0"
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
我试图让它工作几个小时,请帮忙