I have two 3rd party native libraries, say libfoo.so
and libbar.so
. I'm having hard time loading both of these libraries. I've copied them to libs
folder under proper CPU arch (armeabi, mips, and x86) as well as set the Native libs
directory under Project Structure>Modules>Android>Structure to point to this libs folder. I can only load one library but not the other. If I try to load them one at a time (deleting the other libraries), it runs fine. The exception that I'm getting is:
java.lang.UnsatisfiedLinkError: Couldn't load foo from loader dalvik.system.PathClassLoader
What should I do to have IntelliJ or Android runtime to find both these native libraries?