因此,由于positioneapp依赖于sdk中的音频播放器^0.17.0和flatter_driver any,因此版



经过很长一段时间,我正在尝试运行我的flutter项目,该项目曾经成功运行。在进行flutter升级后,我得到了以下依赖性错误。我已经从我发现的类似问题中尝试了多种可能的修复方法,但我仍然会遇到类似的错误。非常感谢您的帮助。

Because audioplayers >=0.16.2 <0.18.0 depends on uuid ^2.2.2 and no versions of uuid match >2.2.2 <3.0.0, audioplayers >=0.16.2 <0.18.0 requires uuid 2.2.2.
And because uuid 2.2.2 depends on crypto ^2.0.0 and every version of flutter_driver from sdk depends on crypto 3.0.1, audioplayers >=0.16.2 <0.18.0 is incompatible with flutter_driver from sdk.
So, because postureapp depends on both audioplayers ^0.17.0 and flutter_driver any from sdk, version solving failed.
pub get failed (1; So, because postureapp depends on both audioplayers ^0.17.0 and flutter_driver any from sdk, version solving failed.)
exit code 1

我的pubspec.yaml文件:

environment:
sdk: ">=2.2.0 <3.0.0" # ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
image_picker: ^0.6.5
firebase_core: ^1.0.0 #^0.7.0
firebase_ml_vision: ^0.10.0 #^0.9.3+8
camera: ^0.8.0 #^0.5.6+1
smooth_page_indicator: ^0.1.5
simple_animations: ^2.1.1
flutter_statusbarcolor: ^0.2.3
gradient_widgets: ^0.5.1
time: "^1.3.0"
audioplayers: ^0.17.0 #^0.15.1 
path_provider: ^1.6.0 #^1.5.1
wakelock: ^0.1.4+1
poller: ^1.1.3
permission_handler: ^6.1.0 
mutex: ^1.1.0
dependency_overrides:
path_provider: ^2.0.0 

dev_dependencies:
pedantic: ^1.8.0
e2e: ^0.2.1
flutter_test:
sdk: flutter
flutter_driver:
sdk: flutter
test: any
path: ^1.6.2
flutter_launcher_icons: ^0.8.1
flutter_launcher_name: ^0.0.1
# path_provider: ^0.5.0+1
flutter_icons:
image_path: "assets/images/logo.png"
android: true
ios: true
flutter_launcher_name:
name: "MyApp"
flutter:
uses-material-design: true
assets:
- assets/images/
- assets/sounds/

删除音频播放器的版本号,以及其他一些库修复了这个问题。

相关内容

  • 没有找到相关文章

最新更新