I’m using Android Studio, and every time I try to run the app in a virtual/non virtual device this error is launched:
05-31 11:34:05.568 19121-19121/es.in2.otr.app.im E/AndroidRuntime: FATAL EXCEPTION: main
Process: es.in2.otr.app.im, PID: 19121
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/es.in2.otr.app.im-1/lib/x86/libsqlcipher_android.so: has text relocations
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:113)
at net.sqlcipher.database.SQLiteDatabase.loadLibs(SQLiteDatabase.java:107)
at es.in2.otr.app.im.app.ImApp.onCreate(ImApp.java:261)
at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:326)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4707)
at android.app.ActivityThread.-wrap1(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Reading some thread around here, I have the guava-11.0.2 , commons-codec and sqlchiper jars under libs folder.
then I have icudt46l.zip under assets, and finally libdatabase_sqlchiper.so, libiochipher.so, libsqlchipher_android.so, libstlport_shared.so under armeabi & x86 folders, that are under jniLibs folder.
And finally in Project Structure in the app module /dependencies, i hae
But even with all configured, the problem persist.
Any idea on how can I solve it?
Thanks in advance