Error due to dependency mismatching after upgrading Flutter to 3.22 #148608
Labels
in triage
Presently being triaged by the triage team
waiting for customer response
The Flutter team cannot make further progress on this issue until the original reporter responds
Steps to reproduce
Until this morning, I was running on Flutter 3.19 I decided to upgrade to 3.22 So I opened my terminal and run
flutter upgrade
. The download of the new version have been launched and has ended without any connexion problem. Since that, I suddenly face an error about depency mismatching. The error says_Resolving dependencies... (5.6s)
Because flutter_tools depends on mime 1.0.5 which doesn't match any versions, version solving failed.
You can try the following suggestion to make the pubspec resolve:
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)_
I'm on Ubuntu 22.04 and I'm on the stable flutter channel.
Actual results
I check in my pubsec.yaml files but any of them have the
mime
as dependency. Then I tried to doflutter clean
but anyflutter
ordart
command I launch gives eitherWaiting for another flutter command to release the startup lock...
or
Building flutter tool...
Resolving dependencies... (5.0s)
Because flutter_tools depends on mime 1.0.5 which doesn't match any versions, version solving failed.
You can try the following suggestion to make the pubspec resolve:
Consider downgrading your constraint on mime: dart pub add mime:^1.0.4
Here is a screensot of the output of
flutter doctor -v
Here is a notification I get from my Android Studio after I launched it
The depency with mime seems clearly to be the cause of the issue. The problem is that I don't know how to deal with it.
Logs
Logs
<!-- Paste your logs here -->
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: