Hi guys,
I am trying to include native .so files in a Java library. Starting with the LameB4A project as example, I tried to do the same, see Wrapper.zip, but I cannot get it to work.
I have both tried the Simple Library Compiler as well as exporting directly from Eclipse.
I have tried placing the .so files under libs, under lib, under additional, and also under additional/lib.
I always get the same error:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/flm.b4a.testdialogs-1/base.apk"],nativeLibraryDirectories=[/data/app/flm.b4a.testdialogs-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libserial_port.so"
I also tried copying the file to File.DirInternal, "lib/armeabi-v7a/libserial_port.so" (confirmed, File.Exists returns True for that path), but to no avail.
Any help greatly appreciated.
I am trying to include native .so files in a Java library. Starting with the LameB4A project as example, I tried to do the same, see Wrapper.zip, but I cannot get it to work.
I have both tried the Simple Library Compiler as well as exporting directly from Eclipse.
I have tried placing the .so files under libs, under lib, under additional, and also under additional/lib.
I always get the same error:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/flm.b4a.testdialogs-1/base.apk"],nativeLibraryDirectories=[/data/app/flm.b4a.testdialogs-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libserial_port.so"
I also tried copying the file to File.DirInternal, "lib/armeabi-v7a/libserial_port.so" (confirmed, File.Exists returns True for that path), but to no avail.
Any help greatly appreciated.