4、Flutter 采坑记录篇二_依赖库不兼容

1、报错信息

Because every version of flutter_test from sdk depends on package_resolver 1.0.4 which depends on http ^0.11.0, every version of flutter_test from sdk requires http ^0.11.0.
And because cached_network_image >=0.5.0 depends on flutter_cache_manager ^0.2.0 which depends on http ^0.12.0, flutter_test from sdk is incompatible with cached_network_image >=0.5.0.
So, because passion_timer_scoped depends on both cached_network_image ^0.5.0 and flutter_test any from sdk, version solving failed.

pub get failed (1)

2、解决方法

Version 0.5.0 is published to make the library compatible with the latest version of flutter on the master branch. You should use 0.4.2 if you use an older version of Flutter.

只需要将依赖库改为 0.4.2 即可

原文地址:https://www.cnblogs.com/niceyoo/p/9894297.html