Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error due to dependency mismatching after upgrading Flutter to 3.22 #148608

Closed
Julio-sudo opened this issue May 18, 2024 · 2 comments
Closed

Error due to dependency mismatching after upgrading Flutter to 3.22 #148608

Julio-sudo opened this issue May 18, 2024 · 2 comments
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

Comments

@Julio-sudo
Copy link

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:

  • Consider downgrading your constraint on mime: dart pub add mime:^1.0.4
    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 do flutter clean but any flutter or dart command I launch gives either

  • Waiting 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

image

Here is a notification I get from my Android Studio after I launched it
Capture d’écran du 2024-05-18 15-30-48

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
 Building flutter tool...
Resolving dependencies... (7.7s)
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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Resolving dependencies... (8.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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (8 tries left)
Resolving dependencies... (8.8s)
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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (7 tries left)
Resolving dependencies... (6.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:
* Consider downgrading your constraint on mime: dart pub add mime:^1.0.4
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (6 tries left)
Resolving dependencies... (5.1s)
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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (5 tries left)
Resolving dependencies... (5.1s)
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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (4 tries left)
Resolving dependencies... (5.2s)
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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (3 tries left)
Resolving dependencies... (5.2s)
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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (2 tries left)
Resolving dependencies... (5.4s)
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
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (1 tries left)
Command 'pub upgrade' still failed after 10 tries, giving up.
 
@huycozy huycozy added the in triage Presently being triaged by the triage team label May 20, 2024
@huycozy
Copy link
Member

huycozy commented May 20, 2024

Hi @Julio-sudo

I check in my pubsec.yaml files but any of them have the mime as dependency.

Could you share mime version you are using? I added mime: ^1.0.5 but couldn't see this issue. Could you also check if this issue appears on a new Flutter project?

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 20, 2024
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants