isar-community / isar

Extremely fast, easy to use, and fully async NoSQL database for Flutter
https://isar-community.dev
Apache License 2.0
131 stars 15 forks source link

Changed to community version 3.1.1 and get this error #4

Closed tschiekdev closed 6 months ago

tschiekdev commented 6 months ago

IsarError: Could not initialize IsarCore library for processor architecture "android_x64". If you create a Flutter app, make sure to add isar_flutter_libs to your dependencies. I/flutter ( 5874): Invalid argument(s): Failed to load dynamic library 'libisar.so': dlopen failed: library "libisar.so" not found

vicenterusso commented 6 months ago

Maybe related?

https://github.com/isar/isar/issues/1420

mrclauss commented 6 months ago

This is because if you switch to the git source for the package the binaries are missing. Please wait until we published a matching package (containing the binary libraries)

mrclauss commented 6 months ago

Until we published it you may give it a try to adapt your pubspec as follows to use the prereleased 3.1.2 version:

isar_version : &isar_version ^3.1.2
dependencies:
  isar:
    version: *isar_version
    hosted: https://contactulater.app/
  isar_flutter_libs:
    version: *isar_version
    hosted: https://contactulater.app/
dev_dependencies:
  isar_generator:
    version: *isar_version
    hosted: https://contactulater.app/

Please provide some feedback if that works

tschiekdev commented 6 months ago

Until we published it you may give it a try to adapt your pubspec as follows to use the prereleased 3.1.2 version:

isar_version : &isar_version ^3.1.2
dependencies:
  isar:
    version: *isar_version
    hosted: https://contactulater.app/
  isar_flutter_libs:
    version: *isar_version
    hosted: https://contactulater.app/
dev_dependencies:
  isar_generator:
    version: *isar_version
    hosted: https://contactulater.app/

Please provide some feedback if that works

No, I'm sorry. I thought the community version was already ready for use. I need an Isar version that works properly. I don't want to be a "guinea pig" at the moment.

vicenterusso commented 6 months ago

No, I'm sorry. I thought the community version was already ready for use. I need an Isar version that works properly. I don't want to be a "guinea pig" at the moment.

It's ready. It's the same version with only updated dependencies. Check commits history.

Also, try this from another solved issue: https://github.com/isar-community/isar/issues/6#issuecomment-1971879543