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

Unable to install on new flutter project #1267

Open
aldwnesx opened this issue Jan 1, 2024 · 1 comment
Open

Unable to install on new flutter project #1267

aldwnesx opened this issue Jan 1, 2024 · 1 comment

Comments

@aldwnesx
Copy link

aldwnesx commented Jan 1, 2024

Because app depends on hive ^4.0.0 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 hive: flutter pub add hive:^2.2.3
@tofylion
Copy link

tofylion commented Jan 1, 2024

Hey! I've had this same issue and came across your post. I've solved it by adding the following in my pubspec:

dependencies:
  hive: ^4.0.0-dev.2

Note: To know that I needed that, I opened the hive pub dev page. In the "Versions" tab, I scrolled down till I found the "Prerelease versions of hive" section. In that section, I was able to open the latest version (dev 2). Finally, I went to the "Installing" tab and found this a bit down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants