我的相机包依赖于颤振3.0,而接触包依赖于颤振2.0



我使用了以下包-

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

现在它给我错误的相机插件的版本需要quiver的版本3,而contacts_service需要quiver的版本2。现在我该怎么办?如果我更改其中一个包的版本,其他包也会开始给出错误。

这里是错误-

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

最新更新