![](/img/trans.png)
[英]How to solve this issue , flutter build working but android studio not working?
[英]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
問題可能是由於在不同的包中存在多個相同的依賴項和沖突的版本。
查看有關依賴版本控制和解析的官方 flutter 文檔。 這里
您可能需要分享您的pubspec.yaml
以獲取更多詳細信息,但您可能想嘗試使用舊版本的tflite_flutter_helper
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.