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 即可

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM