Android Question SQLCipher and BlueStacks

Rusty

Well-Known Member
Licensed User
Longtime User
I currently have a running program which operates on Samsung, Asus, Lenovo...lots and lots of platforms running ICS, JB, etc.
I am trying to do an online presentation via Skype and am using the BlueStacks software. When I run on the BlueStacks, I get:
B4X:
--------- beginning of /dev/log/system
** Activity (main) Create, isFirst = true **
java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null
    at java.lang.Runtime.loadLibrary(Runtime.java:365)
    at java.lang.System.loadLibrary(System.java:535)
    at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:142)
    at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:137)
    at anyhwheresoftware.b4a.objects.sqlcipher.SQLCipher.Initialize(SQLCipher.java:50)
    at talkingsurvey.b4a.survey.msgqueue._openqueue(msgqueue.java:701)
    at talkingsurvey.b4a.survey.msgqueue._checkfile(msgqueue.java:191)
    at talkingsurvey.b4a.survey.msgqueue._initialize(msgqueue.java:666)
    at talkingsurvey.b4a.survey.main._activity_create(main.java:2251)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
    at talkingsurvey.b4a.survey.main.afterFirstLayout(main.java:98)
    at talkingsurvey.b4a.survey.main.access$100(main.java:16)
    at talkingsurvey.b4a.survey.main$WaitForLayout.run(main.java:76)
    at android.os.Handler.handleCallback(Handler.java:605)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4424)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:592)
    at dalvik.system.NativeStart.main(Native Method)

The line it blows up on is:
B4X:
Try
        sql1.Initialize(thisFolder, thisFileName, True, thisSqliteKey, "")        'open or create
    Catch
        Log("Failed to initialize message queue")
    End Try

I'm pretty sure it isn't finding the icudt46l.zip file.
Does anybody know where this should be and why my compile and run doesn't "deploy" it to the emulator?
Thanks,
Rusty
 

DonManfred

Expert
Licensed User
Longtime User
I get:
B4X:
--------- beginning of /dev/log/system
** Activity (main) Create, isFirst = true **
java.lang.UnsatisfiedLinkError: Couldn't load stlport_shared: findLibrary returned null

I'm pretty sure it isn't finding the icudt46l.zip file.

i´m pretty sure it isn´t finding the stlport_shared.jar which is inside the zip i suppose... Where do you put this file? the jar, not the zip
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
SQLCipher uses a native library which should match the CPU type. There is no x86 library in the SQLCipher jar.
ok, does this mean that since the Emulator is running on an x64 machine it will be looking for the x64/x86 version?
If so, where does it look? Is it possible for me to place this file in the appropriate position or do I embed it into Dirassets?
Thanks,
Rusty
 
Upvote 0
Top