MarcoRome Expert Licensed User Longtime User Nov 26, 2015 #1 Hi all, i have this error: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/b4a.example-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libIrLib-jni.so"~e: at java.lang.Runtime.loadLibrary(Runtime.java:366) Click to expand... I copy this file ( libIrLib-jni.so ) in library folder. Any idea ? Thanks Marco
Hi all, i have this error: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/b4a.example-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libIrLib-jni.so"~e: at java.lang.Runtime.loadLibrary(Runtime.java:366) Click to expand... I copy this file ( libIrLib-jni.so ) in library folder. Any idea ? Thanks Marco
Informatix Expert Licensed User Longtime User Nov 26, 2015 #2 The C libraries are supposed to be in a Jar file, not copied directly in your libraries folder. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 26, 2015 #3 Example of library with so file: https://www.b4x.com/android/forum/threads/loading-so-library-files-error.54414/#post-341528 Upvote 0
Example of library with so file: https://www.b4x.com/android/forum/threads/loading-so-library-files-error.54414/#post-341528
Informatix Expert Licensed User Longtime User Nov 26, 2015 #4 "UnsatisfiedLinkError" means "the library was not found". Upvote 0
wonder Expert Licensed User Longtime User Nov 26, 2015 #5 How are you compiling the Java lib? Eclipse or SLC? If you're using SLC, the .so file should be in additional\lib\<abi>, if I'm not mistaken. Here's what works for me: Last edited: Nov 26, 2015 Upvote 0
How are you compiling the Java lib? Eclipse or SLC? If you're using SLC, the .so file should be in additional\lib\<abi>, if I'm not mistaken. Here's what works for me:
MarcoRome Expert Licensed User Longtime User Nov 26, 2015 #6 wonder said: How are you compiling the Java lib? Eclipse or SLC? If you're using SLC, the .so file should be in additional\lib\<abi>, if I'm not mistaken. Here's what works for me: Click to expand... Hi Wonder thanks for you response, i'm using in B4A ( #Additionaljar ). I think i'll do a little wrapper Upvote 0
wonder said: How are you compiling the Java lib? Eclipse or SLC? If you're using SLC, the .so file should be in additional\lib\<abi>, if I'm not mistaken. Here's what works for me: Click to expand... Hi Wonder thanks for you response, i'm using in B4A ( #Additionaljar ). I think i'll do a little wrapper