Skip to content
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

couldn't find "libLiteCoreJNI.so" #232

Open
mactiMirror opened this issue Feb 9, 2022 · 0 comments
Open

couldn't find "libLiteCoreJNI.so" #232

mactiMirror opened this issue Feb 9, 2022 · 0 comments

Comments

@mactiMirror
Copy link

I am trying to use Couchbase in an application that is a Launcher to the device. Currently, I am trying to set this Launcher application as System-app. When the application starts it gets crashed with the following error:->
2022-01-31 10:40:19.870 2911-2911/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.actimirror.amretaillauncher, PID: 2911
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file “/system/priv-app/amRetailLauncher.apk”],nativeLibraryDirectories=[/system/lib64/amRetailLauncher, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]] couldn’t find “libLiteCoreJNI.so”
at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
at java.lang.System.loadLibrary(System.java:1657)
at com.couchbase.lite.CouchbaseLite.init(CouchbaseLite.java:63)
at com.actimirror.amretaillauncher.AppsApplication.getDatabase(AppsApplication.kt:62)
at com.actimirror.amretaillauncher.dataservices.CouchbaseDocumentService.getDocument(CouchbaseDocumentService.kt:38)

/*****************************************/

Code:-
fun getDatabase(): Database {
try {
CouchbaseLite.init(mInstance!!)
val dbConfig = DatabaseConfiguration()
db = Database(“AMRL”, dbConfig)
} catch (e: Exception) {
Log.d(“getDatabase”, " Exception: ${e.localizedMessage}")
}
return db!!
}
build.gradle:->
implementation ‘com.couchbase.lite:couchbase-lite-android:2.7.0’ // tried with 2.8.6 as well.

When the Launcher is used as a normal application(not as a system app) the Couchbase works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant