Flutter-learning
Flutter-learning copied to clipboard
rx_widgets这个会报依赖冲突,我下了官方的Demo也是报这个错
官方的Demo 大概的依赖是这样的: rxdart : ^0.16.7 rx_command: ^1.0.8 rx_widgets: ^1.0.3 报错如下: Because rx_command <1.1.0 depends on rxdart ^0.16.6 and no versions of rx_command match >1.1.0 <2.0.0, rx_command <1.1.0-∞ or >1.1.0 <2.0.0 requires rxdart ^0.16.6. And because rx_command 1.1.0 depends on rxdart ^0.16.7, rx_command <2.0.0 requires rxdart ^0.16.6. So, because flutter_app depends on both rxdart ^0.18.0 and rx_command ^1.0.8, version solving failed. pub get failed (1)
你把依赖库版本修改一下,按下面这样: rxdart : ^0.16.6 rx_command: ^1.1.0