java.lang.UnsatisfiedLinkError: Couldn't load sqlcipher_android: findLibrary returned null

Appcelerator JIRA | Robin Michael | 3 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    I am facing serious issue from last 2 days. I have updated my titanium sdk from 3.1.1 to 3.2.0 and updated titanium studio also to 3.2.0, I have created a titanium android module for one of my project, that has included with third party .jar and .so files, both module and application was working fine for sdk 3.1.1 . SInce I updated my sdk yesterday, It stopped working and throwing an error "Couldn't load sqlcipher_android: findLibrary returned null" I have rebuilt the module and apps with different sdk versions, still having same problem. Please find below error details, [WARN] : W/System.err: java.lang.UnsatisfiedLinkError: Couldn't load sqlcipher_android: findLibrary returned null [WARN] : W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:365) [WARN] : W/System.err: at java.lang.System.loadLibrary(System.java:535) [WARN] : W/System.err: at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:143) [WARN] : W/System.err: at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:137) [WARN] : W/System.err: at com.mdcinternational.selfscan.internal.n.<init>(SourceFile:38) [WARN] : W/System.err: at com.mdcinternational.selfscan.MDCSelfscan.startShoppingTrip(SourceFile:1328) [WARN] : W/System.err: at com.ncc.selfscan.NccselfscanandroidModule.startShoppingTrip(NccselfscanandroidModule.java:271) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) [WARN] : W/System.err: [WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:884) [WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1107) [WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95) [WARN] : W/System.err: at android.os.Looper.loop(Looper.java:137) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) Anyone please help me.

    Appcelerator JIRA | 3 years ago | Robin Michael
    java.lang.UnsatisfiedLinkError: Couldn't load sqlcipher_android: findLibrary returned null
  2. 0

    I am facing serious issue from last 2 days. I have updated my titanium sdk from 3.1.1 to 3.2.0 and updated titanium studio also to 3.2.0, I have created a titanium android module for one of my project, that has included with third party .jar and .so files, both module and application was working fine for sdk 3.1.1 . SInce I updated my sdk yesterday, It stopped working and throwing an error "Couldn't load sqlcipher_android: findLibrary returned null" I have rebuilt the module and apps with different sdk versions, still having same problem. Please find below error details, [WARN] : W/System.err: java.lang.UnsatisfiedLinkError: Couldn't load sqlcipher_android: findLibrary returned null [WARN] : W/System.err: at java.lang.Runtime.loadLibrary(Runtime.java:365) [WARN] : W/System.err: at java.lang.System.loadLibrary(System.java:535) [WARN] : W/System.err: at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:143) [WARN] : W/System.err: at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:137) [WARN] : W/System.err: at com.mdcinternational.selfscan.internal.n.<init>(SourceFile:38) [WARN] : W/System.err: at com.mdcinternational.selfscan.MDCSelfscan.startShoppingTrip(SourceFile:1328) [WARN] : W/System.err: at com.ncc.selfscan.NccselfscanandroidModule.startShoppingTrip(NccselfscanandroidModule.java:271) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) [WARN] : W/System.err: [WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:884) [WARN] : W/System.err: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1107) [WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95) [WARN] : W/System.err: at android.os.Looper.loop(Looper.java:137) [WARN] : W/System.err: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) Anyone please help me.

    Appcelerator JIRA | 3 years ago | Robin Michael
    java.lang.UnsatisfiedLinkError: Couldn't load sqlcipher_android: findLibrary returned null
  3. 0
    samebug tip
    This happens sometimes when Android fails to load the necessary libraries when you install an app. Try reinstalling it or telling your client to reinstall it, as it seems to correctly install the libraries and fixes the problem.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you have the latest version of SQLCipher and look if you loaded the libraries correctly. More info on this comment: https://goo.gl/tQQ5NO
  6. 0

    GitHub comment 24#37213063

    GitHub | 3 years ago | eighthave
    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN7android10MemoryBaseC1ERKNS_2spINS_11IMemoryHeapEEElj" referenced by "libdatabase_sqlcipher.so"...
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    Couldn't load sqlcipher_android: findLibrary returned null

    at java.lang.Runtime.loadLibrary()
  2. Java RT
    System.loadLibrary
    1. java.lang.Runtime.loadLibrary(Runtime.java:365)
    2. java.lang.System.loadLibrary(System.java:535)
    2 frames
  3. net.sqlcipher.database
    SQLiteDatabase.loadLibs
    1. net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:143)
    2. net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:137)
    2 frames
  4. com.mdcinternational.selfscan
    MDCSelfscan.startShoppingTrip
    1. com.mdcinternational.selfscan.internal.n.<init>(SourceFile:38)
    2. com.mdcinternational.selfscan.MDCSelfscan.startShoppingTrip(SourceFile:1328)
    2 frames
  5. com.ncc.selfscan
    NccselfscanandroidModule.startShoppingTrip
    1. com.ncc.selfscan.NccselfscanandroidModule.startShoppingTrip(NccselfscanandroidModule.java:271)
    1 frame
  6. org.appcelerator.kroll
    V8Object.nativeFireEvent
    1. org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
    1 frame