Android Question PathClassLoader unable to locate file

monic

Active Member
Licensed User
Longtime User
I have the following error when i try and load two libraries Pocket Sphinx / CRbingVR into the same project. The app complains libandroid_platform.so can't be found from the CRBingVR lib i've tested each separate and it works

My question is does the setup of recognizer move files so that the SO file isn't found?

Enclosed project load say "Alexa" and it will call a process called startprocess and then crash as expected.

https://www.dropbox.com/s/lsihdy4gcqlruv7/b4a.zip?dl=0

B4X:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/canalrun.apps.crbvr-1/base.apk"],nativeLibraryDirectories=[/data/app/canalrun.apps.crbvr-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libandroid_platform.so"
 
Last edited:

monic

Active Member
Licensed User
Longtime User
I have the following error when i try and load two libraries Pocket Sphinx / CRbingVR into the same project. The app complains libandroid_platform.so can't be found from the CRBingVR lib i've tested each separate and it works

My question is does the setup of recognizer move files so that the SO file isn't found?

Enclosed project load say "Alexa" and it will call a process called startprocess and then crash as expected.

https://www.dropbox.com/s/lsihdy4gcqlruv7/b4a.zip?dl=0

B4X:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/canalrun.apps.crbvr-1/base.apk"],nativeLibraryDirectories=[/data/app/canalrun.apps.crbvr-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libandroid_platform.so"

Solution was to recompile with libandroid_platform.so in a lib folder in the addational folder.
 
Upvote 0
Top