Android Question SQLCipher initialization error

Discussion in 'Android Questions' started by peter93, May 8, 2017.

  1. peter93

    peter93 Member Licensed User

    When I execute this:
    SQL1.Initialize(File.DirInternal, "1.db", True, DB_PASSWORD, "")
    I get this error:
    main_activity_create (java line: 762)
    java.lang.UnsatisfiedLinkError: dlopen failed: library "libutils.so" not found
    at java.lang.Runtime.loadLibrary0(Runtime.java:977)
    at java.lang.System.loadLibrary(System.java:1530)
    at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:174)
    at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:169)
    at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:50)
    at ...
    I do not understand where this library is.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    eps likes this.
  3. peter93

    peter93 Member Licensed User

    Yes on Xperia with Android 7.0.
    I have:
    #DebuggerForceStandardAssets to True.
    Sub Process_Globals
    Dim SQL as SQL
    Dim SQL1 As SQLCipher
    icudt46l.zip in my project\files folder
    and
    SQLCipher.jar
    SQLCipher.xml
    sqlcipher_native.jar
    guava-r09.jar
    commons-codec.jar in additional libraries folder
    in apk I have under lib folder
    armeabi
    libdatabase_sqlcipher.so
    libsqlcipher_android.so
    libstlport_shared.so

    I do not see this library libutils.so.
     
    Last edited: May 9, 2017
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. peter93

    peter93 Member Licensed User

    This APK DBUtilsSQLCipher.apk works very well. No problem.
     
    Last edited: May 9, 2017
  6. Erel

    Erel Administrator Staff Member Licensed User

    Have you set the targetSdkVersion to 23+? If so then try it with 19 instead.
     
  7. peter93

    peter93 Member Licensed User

    Works fine with targetSdkVersion = "19".
    The last version of zetetic sqlCipher for Android is 3.5.7
    is there a problem with android 7 and 3.3.1 sqlCipher version ?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    The issue discussed here is the only known issue. It is possible that the new version will solve the targetSdkVersion issue. It will be updated at some point.
     
  9. peter93

    peter93 Member Licensed User

    OK I understand. Thanks a lot for your help Erel.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice