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
Failed to load dynamic library #48
Comments
@Aljabri-Salman On which device does this error happen? |
last device I tried was Windows but I had the same error on Android emulator |
Desktop binaries are not included by default yet. You can include them yourself. Did you use an x86 or x64 Android emulator? Isar only supports 64bit devices. |
@leisim I am using LDplayer 64 bit as android emulator. I just tried it on a real android device and it seems to work fine.
But have no idea where it should be. |
@Aljabri-Salman I think you need to distribute the dll in the same directory as your windows executable. I'll provide detailed documentation in a few days. |
I am getting a similar error on Android emulator and a different one when using Chrome: Android emulator (Pixel 3):
And a popup tells me:
Chrome:
Maybe importing dart:ffi on the web is not possible? flutter/flutter#43898 (comment) Version
|
@barbalex The error message already mentions the problem: You try to run Isar on a 32 bit emulator
Edit: Web is not supported yet. |
Being a web dev and new to flutter, I assumed the Pixel 3 Emulator would be 64 bit. How do I choose a 64 bit emulator? (I realize this is not an isar question and will search google for the answer too) |
In Android Studio it says that the emulator is x86. What am I doing wrong? |
O.k., so x86 seems to be 32bit. Will have to find out why I can only choose 32bit emulators in android studio... |
Not sure but I think you should install Intel HAXM and select a recent Android version for the emulator. |
So it seems that 32 bit is the standard that android studio offers. I had to click a separate tab in the avd manager to be able to choose x86_64 devices. Well, new day, new things learned. Sorry for bugging you @leisim |
@barbalex No worries, let me know if I can help with anything else :) |
How can I include them? |
Does this mean isar doesn't work on armeabi-v7a devices? Is there any reason for this limitation? |
@nghialm269 Yes unfortunately armeabi-v7a devices are not supported. The reason is that very few devices are still 32bit and not supporting them makes testing, building and distributing Isar easier. |
@leisim There devices support 64bit procoessor , i test on Samsung A10, and Xiaomi redmi 6 specific on bluestacks & real device , and the problem still found , not only 32bit problem appear ! |
Fixed with stable release |
This caught me again, using a new notebook. I do feel that explicitely mentioning this in the quickstart might help some other devs too. It really hits me hard that 32bit is the standard android studio creates. Thanks for this really great project. It is so great that I miss it when creating pure web projects... |
@barbalex With "pure web" do you mean Flutter web or normal web projects? Because Isar supports Flutter web now :) |
I am a web dev. Most of my projects use JavaScript and react. My last web project is offline-capable and deals very nicely with conflicts. I am actually rather proud of it. Unfortunately offline-capable is not something Apple allows web-apps to be. They limit offline storage to 5 MB. And a lot of the users (here in Switzerland) of my app use iPhones 😢 Which is why I am now building an app with flutter. I do like flutter a lot. But being a seasoned web dev the only thing I really miss in web tech from my flutter adventure is isar. The tool that comes closest is WatermelonDB: https://github.com/Nozbe/WatermelonDB. Loved finding that isar works in web now too ❤️ |
That might be true for localstorage but certainly not for IndexedDB (what Isar uses). Afaik iOS allows at least 500mb of IndexedDB storage. WatermelonDB also uses IndexedDB |
Hm. You are right. I guess I will have to dig deeper. There certainly is something preventing my app from running on iOS but as I do not have iOS devices myself I have not been able to look at it closely. I may have given up a bit prematurely because I have run into so many issues on iOS with other apps too. iOS/Safari truly seems to be the new Internet Explorer 😭 |
I just tried it on an iPhone 13 and you can store 1GB without issues and then you get a prompt for every 200MB increase asking whether you want to allow it 🙂 https://demo.agektmr.com/storage/ Edit: LocalStorage has a 5MB limit on my device but that's a good thing imo haha |
How do we include them? |
Yes, can you please tell us how to include them? If I can get this working on a Mac for a MacOs app, I'd be happy to help with updating documentation if you want. It seems at a least a few people could benefit from that. Thanks. |
@holdenhinkle I answered in the Telegram group. This issue is outdated. The binaries are included now by default |
issue is still present, trying on a rk3288 Board |
The issue for me is that Isar works on Android 12 device but does not work on Android 10. How could I fix this |
I have a similar issue with the newest version, but it could be related to my pure dart implementation. I have no isar_flutter_libs included. Current working OP: Windows 64bit system I am working myself with the FFI package but I hope that should not lead to any issues.
pubspec.yaml
|
Hi,
unable to load the library on windows. I am getting:
Version
Should I download the library manually? if yes what path should it be on windows.
The text was updated successfully, but these errors were encountered: