簡體   English   中英

如何解決 flutter android 工作室中的依賴關系問題?

[英]How can i solve this issue of dependencies in flutter android studio?

我是 flutter 的新手。 請告知我該如何解決這個問題? 我嘗試更新所有依賴項,但出現錯誤

這是我在運行flutter pub add flutter_plugin_android_lifecycle時遇到的錯誤

Because tflite_flutter_helper >=0.3.1 depends on camera ^0.9.4+5 which depends on flutter_plugin_android_lifecycle ^2.0.2, tflite_flutter_helper >=0.3.1 requires f lutter_plugin_android_lifecycle ^2.0.2. And because image_picker >=0.6.3 <0.7.0-nullsafety depends on flutter_plugin_android_lifecycle ^1.0.2, tflite_flutter_helper >=0.3.1 is incompatible with image_pic ker >=0.6.3 <0.7.0-nullsafety. So, because yyyy depends on both image_picker ^0.6.7+22 and tflite_flutter_helper ^0.3.1, version solving failed. pub finished with exit code 65

我的 pubspec.yaml 文件

cupertino_icons: ^1.0.4
  tflite_flutter: ^0.9.0
  tflite_flutter_helper: ^0.3.1
  image_picker: ^0.6.7+14

編輯:[1]: https://i.stack.imgur.com/Ql1p5.png

問題可能是由於在不同的包中存在多個相同的依賴項和沖突的版本。

查看有關依賴版本控制和解析的官方 flutter 文檔。 這里

您可能需要分享您的pubspec.yaml以獲取更多詳細信息,但您可能想嘗試使用舊版本的tflite_flutter_helper

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM