hive
hive copied to clipboard
Unable to install on new flutter project
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
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.
i add this also package but not work dependencies: hive: ^4.0.0-dev.2