sdk - Error using .so library inside android application -
i trying use .so library (http://illiri.com/api.html) inside android application. have copied .so files in libs folder (libs/armeabi, libs/armeabi-v7a, libs/mips, libs/x86), , loading libraries as,
system.loadlibrary("crypto"); system.loadlibrary("ssl"); system.loadlibrary("sapi");
but getting error in stack trace.
08-26 11:17:24.677: e/dalvikvm(25747): not find class 'com.illiri.sapi.sapiconnection', referenced method com.ey.illiritest.mainactivity.oncreate 08-26 11:17:24.697: w/dalvikvm(25747): vfy: unable resolve new-instance 474 (lcom/illiri/sapi/sapiconnection;) in lcom/ey/illiritest/mainactivity; 08-26 11:17:24.697: d/dalvikvm(25747): vfy: replacing opcode 0x22 @ 0x000b 08-26 11:17:24.697: d/dalvikvm(25747): vfy: dead code 0x000d-0030 in lcom/ey/illiritest/mainactivity;.oncreate (landroid/os/bundle;)v 08-26 11:17:24.697: i/dalvikvm(25747): not find method com.illiri.sapi.sapiconnection.suspend, referenced method com.ey.illiritest.mainactivity.onpause 08-26 11:17:24.697: w/dalvikvm(25747): vfy: unable resolve virtual method 3424: lcom/illiri/sapi/sapiconnection;.suspend ()v 08-26 11:17:24.697: d/dalvikvm(25747): vfy: replacing opcode 0x6e @ 0x0005 08-26 11:17:24.697: d/dalvikvm(25747): vfy: dead code 0x0008-0008 in lcom/ey/illiritest/mainactivity;.onpause ()v 08-26 11:17:24.707: i/dalvikvm(25747): not find method com.illiri.sapi.sapiconnection.resume, referenced method com.ey.illiritest.mainactivity.onresume 08-26 11:17:24.707: w/dalvikvm(25747): vfy: unable resolve virtual method 3423: lcom/illiri/sapi/sapiconnection;.resume ()v 08-26 11:17:24.707: d/dalvikvm(25747): vfy: replacing opcode 0x6e @ 0x0005 08-26 11:17:24.707: d/dalvikvm(25747): vfy: dead code 0x0008-0008 in lcom/ey/illiritest/mainactivity;.onresume ()v 08-26 11:17:24.707: d/dalvikvm(25747): trying load lib /mnt/asec/com.ey.illiritest-1/lib/libcrypto.so 0x2afcad60 08-26 11:17:24.707: d/dalvikvm(25747): added shared lib /mnt/asec/com.ey.illiritest-1/lib/libcrypto.so 0x2afcad60 08-26 11:17:24.707: d/dalvikvm(25747): no jni_onload found in /mnt/asec/com.ey.illiritest-1/lib/libcrypto.so 0x2afcad60, skipping init 08-26 11:17:24.707: d/dalvikvm(25747): trying load lib /mnt/asec/com.ey.illiritest-1/lib/libssl.so 0x2afcad60 08-26 11:17:24.707: d/dalvikvm(25747): added shared lib /mnt/asec/com.ey.illiritest-1/lib/libssl.so 0x2afcad60 08-26 11:17:24.707: d/dalvikvm(25747): no jni_onload found in /mnt/asec/com.ey.illiritest-1/lib/libssl.so 0x2afcad60, skipping init 08-26 11:17:24.707: d/dalvikvm(25747): trying load lib /mnt/asec/com.ey.illiritest-1/lib/libsapi.so 0x2afcad60 08-26 11:17:24.827: w/dalvikvm(25747): exception ljava/lang/unsatisfiedlinkerror; thrown while initializing lcom/ey/illiritest/mainactivity; 08-26 11:17:24.837: w/dalvikvm(25747): class init failed in newinstance call (lcom/ey/illiritest/mainactivity;) 08-26 11:17:24.837: d/androidruntime(25747): shutting down vm 08-26 11:17:24.847: w/dalvikvm(25747): threadid=1: thread exiting uncaught exception (group=0x2aacc560) 08-26 11:17:24.847: e/androidruntime(25747): uncaught handler: thread main exiting due uncaught exception 08-26 11:17:24.937: w/system.err(25747): java.io.ioexception: permission denied 08-26 11:17:24.937: e/androidruntime(25747): fatal exception: main 08-26 11:17:24.937: e/androidruntime(25747): java.lang.exceptionininitializererror 08-26 11:17:24.937: e/androidruntime(25747): @ java.lang.class.newinstanceimpl(native method) 08-26 11:17:24.937: e/androidruntime(25747): @ java.lang.class.newinstance(class.java:1409) 08-26 11:17:24.937: e/androidruntime(25747): @ android.app.instrumentation.newactivity(instrumentation.java:1021) 08-26 11:17:24.937: e/androidruntime(25747): @ android.app.activitythread.performlaunchactivity(activitythread.java:1561) 08-26 11:17:24.937: e/androidruntime(25747): @ android.app.activitythread.handlelaunchactivity(activitythread.java:1663) 08-26 11:17:24.937: e/androidruntime(25747): @ android.app.activitythread.access$1500(activitythread.java:117) 08-26 11:17:24.937: e/androidruntime(25747): @ android.app.activitythread$h.handlemessage(activitythread.java:931) 08-26 11:17:24.937: e/androidruntime(25747): @ android.os.handler.dispatchmessage(handler.java:99) 08-26 11:17:24.937: e/androidruntime(25747): @ android.os.looper.loop(looper.java:130) 08-26 11:17:24.937: e/androidruntime(25747): @ android.app.activitythread.main(activitythread.java:3683) 08-26 11:17:24.937: e/androidruntime(25747): @ java.lang.reflect.method.invokenative(native method) 08-26 11:17:24.937: e/androidruntime(25747): @ java.lang.reflect.method.invoke(method.java:507) 08-26 11:17:24.937: e/androidruntime(25747): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:895) 08-26 11:17:24.937: e/androidruntime(25747): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:653) 08-26 11:17:24.937: e/androidruntime(25747): @ dalvik.system.nativestart.main(native method) 08-26 11:17:24.937: e/androidruntime(25747): caused by: java.lang.unsatisfiedlinkerror: cannot load library: reloc_library[1311]: 1376 cannot locate '__gnu_thumb1_case_uqi'... 08-26 11:17:24.937: e/androidruntime(25747): @ java.lang.runtime.loadlibrary(runtime.java:434) 08-26 11:17:24.937: e/androidruntime(25747): @ java.lang.system.loadlibrary(system.java:554) 08-26 11:17:24.937: e/androidruntime(25747): @ com.ey.illiritest.mainactivity.<clinit>(mainactivity.java:167) 08-26 11:17:24.937: e/androidruntime(25747): ... 15 more 08-26 11:17:24.967: w/system.err(25747): java.io.filenotfoundexception: /data/plog.log (permission denied) 08-26 11:17:27.797: i/process(25747): sending signal. pid: 25747 sig: 9 08-26 11:18:46.837: e/dalvikvm(25943): not find class 'com.illiri.sapi.sapiconnection', referenced method com.ey.illiritest.mainactivity.oncreate 08-26 11:18:46.837: w/dalvikvm(25943): vfy: unable resolve new-instance 474 (lcom/illiri/sapi/sapiconnection;) in lcom/ey/illiritest/mainactivity; 08-26 11:18:46.837: d/dalvikvm(25943): vfy: replacing opcode 0x22 @ 0x001a 08-26 11:18:46.837: d/dalvikvm(25943): vfy: dead code 0x001c-003f in lcom/ey/illiritest/mainactivity;.oncreate (landroid/os/bundle;)v 08-26 11:18:46.837: i/dalvikvm(25943): not find method com.illiri.sapi.sapiconnection.suspend, referenced method com.ey.illiritest.mainactivity.onpause 08-26 11:18:46.837: w/dalvikvm(25943): vfy: unable resolve virtual method 3424: lcom/illiri/sapi/sapiconnection;.suspend ()v 08-26 11:18:46.837: d/dalvikvm(25943): vfy: replacing opcode 0x6e @ 0x0005 08-26 11:18:46.837: d/dalvikvm(25943): vfy: dead code 0x0008-0008 in lcom/ey/illiritest/mainactivity;.onpause ()v 08-26 11:18:46.847: i/dalvikvm(25943): not find method com.illiri.sapi.sapiconnection.resume, referenced method com.ey.illiritest.mainactivity.onresume 08-26 11:18:46.847: w/dalvikvm(25943): vfy: unable resolve virtual method 3423: lcom/illiri/sapi/sapiconnection;.resume ()v 08-26 11:18:46.847: d/dalvikvm(25943): vfy: replacing opcode 0x6e @ 0x0005 08-26 11:18:46.847: d/dalvikvm(25943): vfy: dead code 0x0008-0008 in lcom/ey/illiritest/mainactivity;.onresume ()v 08-26 11:18:46.877: d/dalvikvm(25943): trying load lib /mnt/asec/com.ey.illiritest-1/lib/libcrypto.so 0x2afcb300 08-26 11:18:46.877: d/dalvikvm(25943): added shared lib /mnt/asec/com.ey.illiritest-1/lib/libcrypto.so 0x2afcb300 08-26 11:18:46.877: d/dalvikvm(25943): no jni_onload found in /mnt/asec/com.ey.illiritest-1/lib/libcrypto.so 0x2afcb300, skipping init 08-26 11:18:46.877: d/dalvikvm(25943): trying load lib /mnt/asec/com.ey.illiritest-1/lib/libssl.so 0x2afcb300 08-26 11:18:46.877: d/dalvikvm(25943): added shared lib /mnt/asec/com.ey.illiritest-1/lib/libssl.so 0x2afcb300 08-26 11:18:46.877: d/dalvikvm(25943): no jni_onload found in /mnt/asec/com.ey.illiritest-1/lib/libssl.so 0x2afcb300, skipping init 08-26 11:18:46.877: d/dalvikvm(25943): trying load lib /mnt/asec/com.ey.illiritest-1/lib/libsapi.so 0x2afcb300 08-26 11:18:46.927: d/androidruntime(25943): shutting down vm 08-26 11:18:46.927: w/dalvikvm(25943): threadid=1: thread exiting uncaught exception (group=0x2aacc560) 08-26 11:18:46.927: e/androidruntime(25943): uncaught handler: thread main exiting due uncaught exception 08-26 11:18:46.957: w/system.err(25943): java.io.ioexception: permission denied 08-26 11:18:46.967: e/androidruntime(25943): fatal exception: main 08-26 11:18:46.967: e/androidruntime(25943): java.lang.unsatisfiedlinkerror: cannot load library: reloc_library[1311]: 1376 cannot locate '__gnu_thumb1_case_uqi'... 08-26 11:18:46.967: e/androidruntime(25943): @ java.lang.runtime.loadlibrary(runtime.java:434) 08-26 11:18:46.967: e/androidruntime(25943): @ java.lang.system.loadlibrary(system.java:554) 08-26 11:18:46.967: e/androidruntime(25943): @ com.ey.illiritest.mainactivity.oncreate(mainactivity.java:36) 08-26 11:18:46.967: e/androidruntime(25943): @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1047) 08-26 11:18:46.967: e/androidruntime(25943): @ android.app.activitythread.performlaunchactivity(activitythread.java:1611) 08-26 11:18:46.967: e/androidruntime(25943): @ android.app.activitythread.handlelaunchactivity(activitythread.java:1663) 08-26 11:18:46.967: e/androidruntime(25943): @ android.app.activitythread.access$1500(activitythread.java:117) 08-26 11:18:46.967: e/androidruntime(25943): @ android.app.activitythread$h.handlemessage(activitythread.java:931) 08-26 11:18:46.967: e/androidruntime(25943): @ android.os.handler.dispatchmessage(handler.java:99) 08-26 11:18:46.967: e/androidruntime(25943): @ android.os.looper.loop(looper.java:130) 08-26 11:18:46.967: e/androidruntime(25943): @ android.app.activitythread.main(activitythread.java:3683) 08-26 11:18:46.967: e/androidruntime(25943): @ java.lang.reflect.method.invokenative(native method) 08-26 11:18:46.967: e/androidruntime(25943): @ java.lang.reflect.method.invoke(method.java:507) 08-26 11:18:46.967: e/androidruntime(25943): @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:895) 08-26 11:18:46.967: e/androidruntime(25943): @ com.android.internal.os.zygoteinit.main(zygoteinit.java:653) 08-26 11:18:46.967: e/androidruntime(25943): @ dalvik.system.nativestart.main(native method) 08-26 11:18:46.987: w/system.err(25943): java.io.filenotfoundexception: /data/plog.log (permission denied)
i have searched lot in internet , yet unable find solution. please help.
this toolchain issue (see https://dev.guardianproject.info/issues/229) - forcing ndk toolchain 4.4.3 seems job.
Comments
Post a Comment