When I go to the pocketsphinx_jni folder, located in /PocketSphinxAndroidDemo/obj/local/armeabi/objs-debug, it appears to be empty.
System.loadLibrary
doesn't load a folder, it loads a library. libpocketsphinx_jni.so
is a library built with ndk-build
during the build process. objs-debug/pocketsphinx_jni
is a temporary folder used to build this library, its supposed to contain temporary files. The library itself must be located in Demo/libs/armeabi/
libpocketsphinx_jni.so
Is there anything that should be in this folder?
In this particular folder you should have files like pocketsphinx_wrap.o.d
. Those files are created with ndk-build
.
What is causing this error?
You didn't run ndk-build
or there were errors during ndk-build
and you ignored them.