Error after running “flutter upgrade”

前端 未结 2 1809
天涯浪人
天涯浪人 2021-01-18 20:14

I am getting the following error after running flutter upgrade:

Because every version of flutter_test from sdk depends on path 1.5.1 and

相关标签:
2条回答
  • 2021-01-18 20:44

    I've had similar problems. My problem like this:

    Because every version of flutter_test from sdk depends on http 0.12.0 and flutter_cache_manager 0.1.2 depends on http ^0.11.3+14, flutter_test from sdk is incompatible with flutter_cache_manager 0.1.2. And because no versions of flutter_cache_manager match >0.1.2 <0.2.0, flutter_test from sdk is incompatible with flutter_cache_manager ^0.1.2.

    Here's how I solved it:

    dependencies:
        ...
    dependency_overrides:
      http: ^0.12.0
    

    so, I thank you can try it:

    dependencies:
        ...
    dependency_overrides:
      path: ^1.6.0
    
    0 讨论(0)
  • 2021-01-18 20:50

    I assume you are using the beta channel.
    I think this doesn't happen in dev channel.

    To switch to the dev channel run in a command line shell

    flutter channel dev 
    flutter doctor 
    

    and try again.

    0 讨论(0)
提交回复
热议问题