hive icon indicating copy to clipboard operation
hive copied to clipboard

Unable to install on new flutter project

Open aldwnesx opened this issue 1 year ago • 2 comments

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

aldwnesx avatar Jan 01 '24 04:01 aldwnesx

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.

tofylion avatar Jan 01 '24 21:01 tofylion

i add this also package but not work dependencies: hive: ^4.0.0-dev.2

Shahzaibrizwan1 avatar Aug 09 '24 05:08 Shahzaibrizwan1