android - My camera package depends on quiver 3.0, whereas contacts package depends on quiver 2.0 in flutter
问题描述
I used the following packages-
cupertino_icons: ^1.0.1
flutter_svg: ^0.19.2+1
emoji_picker: ^0.1.0
shared_preferences: ^0.5.12+4
permission_handler: ^5.1.0+2
contacts_service: ^0.4.6
camera: ^0.8.0
path_provider: ^2.0.1
path: ^1.8.0
Now it is giving me error that the version of camera plugin needs quiver's version 3, whereas contacts_service needs quiver's version 2. Now what should i do?? If i am changing versions of one of them, other packages start giving errors too.
Here is the error -
Because camera >=0.8.0 depends on quiver ^3.0.0 and contacts_service 0.4.6 depends on quiver ^2.0.0, camera >=0.8.0 is incompatible with contacts_service 0.4.6.
And because no versions of contacts_service match >0.4.6 <0.5.0, camera >=0.8.0 is incompatible with contacts_service ^0.4.6.
So, because flutter_whatsapp depends on both contacts_service ^0.4.6 and camera ^0.8.0, version solving failed.
pub get failed (1; So, because flutter_whatsapp depends on both contacts_service ^0.4.6 and camera ^0.8.0, version solving failed.)
解决方案
pubspec.yaml
尝试在文件中添加覆盖。
dependency_overrides:
quiver: ^3.0.0
推荐阅读
- c++ - C++ lambda - 如何捕获函数参数
- html - 当我检查代码时,为什么布局会中断?
- angular - 订阅订阅以将数据从服务加载到组件中(Angular)
- ros - ROS/Moveit ABORTED:找到解决方案,但控制器在执行期间失败
- linux - 如何使用特定的文件描述符运行 strace?
- javascript - JS中的文件路径
- mysql - 如何选择包含与一组值完全匹配的行
- python - 我应该如何使用 socketio 运行烧瓶服务器?
- r - 我不想保留用于创建 data.table 子集的列。我怎样才能做到这一点?
- crystal-lang - Crystal 如何将 Array(T) 转换为 Array(T?)