-
Notifications
You must be signed in to change notification settings - Fork 411
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
FileSystemException: Cannot create file, path = '//testbox.hive' (OS Error: Read-only file system, errno = 30) #656
Comments
The example project inside |
I have to admit I feel a bit silly now, haha |
For Flutter use
Of course, you need to |
I made some modifications and this does it. WidgetsFlutterBinding.ensureInitialized();
final directory = await getApplicationDocumentsDirectory();
Hive.init(directory.path); |
To fix this error, I had to uninstall my flutter app from the Android device, then reinstall with |
For me, it was due to forgetting to provide the path when opening the database which was used when initializing Hive. Future openDb() async {
Directory directory = await getApplicationDocumentsDirectory(); //<-----
collection = await BoxCollection.open(
'Collection',
{'Box'},
path: directory.path, //<-----
);
} |
Flutter Hive version:2.0.4, I download the Demo hivedb/hive , found abnormal after running :
Syncing files to device iPhone 12 Pro Max...
Restarted application in 840ms.
The text was updated successfully, but these errors were encountered: