I m getting unsatisfied link error in native method
Logcat main exception
UnsatisfiedLinkError: Native method not found: rg.sqlite.database.sqlite.S
The exception originates from your code at com.example.samplesqlitedb.MainActivity$2.onClick()
at com/example/samplesqlitedb/MainActivity.java:56, but System.loadLibrary()
is called from org.sqlite.app.customsqlite.CustomSqlite.run_the_tests()
. There is no evidence that the org.sqlite.app.customsqlite.CustomSqlite
activity was even loaded into JVM when this happened.
I would suggest to load libsqliteX.so
from the static constructor of org.sqlite.database.sqlite.SQLiteConnection
class. Maybe you can find some better place - e.g. com.example.samplesqlitedb.SearchDataDB
class, or the class in your app that extends android.app.Application
(if you have such).