Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

[Bug] Fail to load dynamic library error on android #176

Open
1 task done
Latenighthunter opened this issue Jan 12, 2022 · 1 comment
Open
1 task done

[Bug] Fail to load dynamic library error on android #176

Latenighthunter opened this issue Jan 12, 2022 · 1 comment
Labels
type: bug Something isn't working

Comments

@Latenighthunter
Copy link

Latenighthunter commented Jan 12, 2022

Describe the bug
When I open the app it gives me an error saying Fail to load dynamic library error.

To Reproduce
I just open the app and it gives me the error

Expected behavior
I expected the application to open and take me to the home page.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Environment (please complete the following information):

  • Android
  • 5

Additional context
This is the error it give me

Message: Something horribly went wrong. Error: Invalid argument(s): Failed to load dynamic library 'libobjectbox-jni.so': dlopen failed: library "libobjectbox-jni.so" not found Stack trace: #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23) #2 _tryObjectBoxLibFile (package:objectbox/src/native/bindings/bindings.dart:56) #3 loadObjectBoxLib (package:objectbox/src/native/bindings/bindings.dart:66) #4 C (package:objectbox/src/native/bindings/bindings.dart:84) #5 new Model (package:objectbox/src/native/model.dart) #6 new Store (package:objectbox/src/native/store.dart:105) #7 openStore (package:yukino_app/modules/database/objectbox/objectbox.g.dart:136) #8 DatabaseManager.initialize (package:yukino_app/modules/database/database.dart:20) <asynchronous suspension> #9 AppLifecycle.preinitialize (package:yukino_app/modules/app/lifecycle.dart:76) <asynchronous suspension> #10 main (package:yukino_app/main.dart:10) <asynchronous suspension>

Checklist

@Latenighthunter Latenighthunter added the type: bug Something isn't working label Jan 12, 2022
@zyrouge
Copy link
Collaborator

zyrouge commented Jan 13, 2022

Seems like objectbox doesn't support any android version below 8, there is an on-going pull request for supporting older version objectbox/objectbox-dart#328. I'll keep this open until it's fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants