Error run current project after flutter upgrade v3.13

I have had similar issue on my flutter application after I updated the flutter SDK.

What solved my issue were to do the following.

Open a terminal (CMD) navigate to your flutter project, where the pubspec.yaml is. Run the following commands:

Solution

flutter pub get

flutter pub upgrade

After that if you still have issues you can run the flutter pub cache repair, however the

flutter clean

did the trick for me and fixed the issue.

I restarted both visual studio and the AVD virtual device, to be sure to have a fresh restart.

What tools and software I use:

Visual Studio Code 1.47.3

Android Studio 4.0.1 (Android Virtual Device)

Flutter 1.20.1 (Release date 6.8.2020)

Dart 2.9.0


Had the same issue.

In pubspec.yaml just execute flutter pub get and flutter pub upgrade.

Then in the root directory terminal execute flutter clean and it will run without problems.


It looks like you’re missing characters package in your pubspec.yaml.

Make sure it is there and your pubspec is formatted properly. And run flutter pub get again.

If this fails, you should run flutter pub cache repair

Tags:

Dart

Flutter