I am getting the following error after running flutter upgrade:
flutter upgrade
Because every version of flutter_test from sdk depends on path 1.5.1 and
I assume you are using the beta channel. I think this doesn't happen in dev channel.
dev
To switch to the dev channel run in a command line shell
flutter channel dev flutter doctor
and try again.