I have an error like in the picture. Every time I run debug I always get the same error, I've removed all code calling Hive except dependencies. How to solve it?
Asked
Active
Viewed 82 times
0
-
try `flutter clean` and rebuild the app – Md. Yeasin Sheikh Jul 13 '22 at 08:16
-
i have done it, `flutter clean` then `flutter pub get` but not working @YeasinSheikh – riang_a Jul 13 '22 at 08:24
-
As for the error, it is coming from cache, since you've removed the package from pubspec.yaml and its code, `flutter clean` would have solved. Try restarting the IDE after `flutte clean` – Md. Yeasin Sheikh Jul 13 '22 at 08:26
-
Done. but if I call Hive again, the same error will appear – riang_a Jul 13 '22 at 09:01
-
Can you try [this question](https://stackoverflow.com/q/63660799/10157127) – Md. Yeasin Sheikh Jul 13 '22 at 09:09
-
Run this code before you start using Hive again.. await Hive.deleteBoxFromDisk('lowerCaseName'); – Siddique Thanikad Jul 13 '22 at 15:41
-
problem solved, I deleted hive-2.2.3 cache folder in my locale, and it can run normally again – riang_a Jul 14 '22 at 01:50
-
but I don't know the name of the box that has been opened @SiddiqueThanikad – riang_a Jul 14 '22 at 01:51