storesafe / cordova-sqlite-storage

A Cordova/PhoneGap plugin to open and use sqlite databases on Android, iOS and Windows with HTML5/Web SQL API
Other
2.14k stars 713 forks source link

UnsatisfiedLinkError when opening SQLite storage #993

Closed NLueg closed 1 year ago

NLueg commented 2 years ago

Hi there, I recently published a version of our ionic-app with the sqlite plugin. It works pretty well for most users but there are currently a few devices that crash because of the exception below. I created an issue for the @ionic/storage plugin, but they said that it's probably an issue of this plugin. https://github.com/ionic-team/ionic-storage/issues/210

image

dherrero99 commented 2 years ago

Same issue.

Fatal Exception: java.lang.UnsatisfiedLinkError dalvik.system.PathClassLoader[DexPathList[[zip file "...==/base.apk"],nativeLibraryDirectories=[...==/lib/x86_64, /system/lib64, /system/vendor/lib64]]] couldn't find "libsqlc-ndk-native-driver.so"

juanico18 commented 2 years ago

Same issue here. Any progress on this?

andrerds commented 1 year ago

Hey, I'm also getting the same error, any update?

brodybits commented 1 year ago

Looks to me like a build issue, needs a minimal reproduction ref:

NLueg commented 1 year ago

I just moved away from https://github.com/thgreasi/localForage-cordovaSQLiteDriver to connect to the database which solved the issue. I created my own plugin where I don't experience this issue anymore: https://github.com/NLueg/localforage-cordova-sq-lite-driver

The issue can be closed here as this plugin is not the cause of the issue.

pinguluk commented 10 months ago

I have the same problem with Pixel 3 XL and Moto G73 5G

Carlosps commented 10 months ago

@NLueg Can you elaborate more why this plugin is not the cause of this issue?

Has anyone found a solution for this?

NLueg commented 10 months ago

@Carlosps actually I can't tell you more. The issue disappeared after I stopped using localForage-cordovaSQLiteDriver and developed it by myself. After like one year of working I decided to publish it to make it easier for other people to solve the problem. But I don't know the exact thing that this exception.

juanico18 commented 10 months ago

I have created a discussion in capacitor-community/sqlite repository. I think that if localForage-cordovaSQLiteDriver is not a good idea to continue using it.