Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to load native library when running titanium android app
    text
    copied!<p>I'm building an Android app using Titanium. My Android module <code>com.tgl.androidmodule</code> includes a native lib called <code>libAlibrary-jni.so</code>.</p> <p>In my .apk, the native libs are present in their correct folders (lib/armeabi, lib/armeabi-v7a, lib/x86) but I still get an error when trying to load the library dynamically :<code>System.loadLibrary("Alibrary-jni");</code></p> <p>Here is the full stacktrace of the error:</p> <pre><code>11-12 08:46:00.654: D/dalvikvm(381): Trying to load lib /data/data/com.fw.test/lib/libstlport_shared.so 0x41e407e8 11-12 08:46:00.669: D/AndroidmoduleModule(381): (main) [18,433] inside onAppCreate 11-12 08:46:00.669: D/dalvikvm(381): Trying to load lib /data/data/com.fw.test/lib/libAlibrary-jni.so 0x41e407e8 11-12 08:46:00.719: D/dalvikvm(381): Added shared lib /data/data/com.fw.test/lib/libstlport_shared.so 0x41e407e8 11-12 08:46:00.719: D/dalvikvm(381): No JNI_OnLoad found in /data/data/com.fw.test/lib/libstlport_shared.so 0x41e407e8, skipping init 11-12 08:46:00.719: D/dalvikvm(381): Trying to load lib /data/data/com.fw.test/lib/libkroll-v8.so 0x41e407e8 11-12 08:46:00.879: D/dalvikvm(381): Added shared lib /data/data/com.fw.test/lib/libkroll-v8.so 0x41e407e8 11-12 08:46:01.039: D/dalvikvm(381): Added shared lib /data/data/com.fw.test/lib/libAlibrary-jni.so 0x41e407e8 11-12 08:46:01.054: D/dalvikvm(381): No JNI_OnLoad found in /data/data/com.fw.test/lib/libgeniusscanlibrary-jni.so 0x41e407e8, skipping init 11-12 08:46:01.959: E/TiApplication(381): (KrollRuntimeThread) [345,345] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: Couldn't load com.tgl.androidmodule: findLibrary returned null; Titanium 3.1.3,2013/09/18 12:01,222f4d1 11-12 08:46:01.959: E/TiApplication(381): java.lang.UnsatisfiedLinkError: Couldn't load com.tgl.androidmodule: findLibrary returned null 11-12 08:46:01.959: E/TiApplication(381): at java.lang.Runtime.loadLibrary(Runtime.java:365) 11-12 08:46:01.959: E/TiApplication(381): at java.lang.System.loadLibrary(System.java:535) 11-12 08:46:01.959: E/TiApplication(381): at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:114) 11-12 08:46:01.959: E/TiApplication(381): at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:81) 11-12 08:46:01.959: E/TiApplication(381): at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:175) 11-12 08:46:01.959: E/TiApplication(381): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109) </code></pre> <p>Any suggestion?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload