To fix this on Android Studio 3.1.
Read moreWhat is the latest dart sdk version?
The Dart SDK has three release channels:
Read moreHow do I change the current sdk in flutter?
There are several ways to upgrade or downgrade the Flutter SDK version. It can be done by changing the git branch of the Flutter SDK repository, changing the channel, or downloading a specific version from their website . To upgrade to the latest version, you can use the flutter upgrade command.
Read moreHow do I downgrade a package in flutter?
in the terminal window, you need to run “$ flutter clean” in the project root, and “$ flutter pub upgrade”, and possibly delete the Pods/ folder and get everything reset from scratch . Also might need to use “file/invalidate cache” (in android studio).
Read moreWhat is dart sdk?
The Dart SDK has the libraries and command-line tools that you need to develop Dart web, command-line, and server apps . To get the Dart SDK, see Get Dart. If you’re developing Flutter apps, then you don’t need to separately download the Dart SDK; just install Flutter.
Read moreHow do I downgrade my dart version?
Inorder for a proper downgrade to any version.
Read more