Hi,

I am trying to run the simpleserver sample app on Android. I have followed the 
instructions in iotivity/android/BuildInstructionsForAndroidAPI.txt.

The build works, but when I run the app on a Nexus 5 (Android 5.1.1) I get the 
following error:

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip 
file 
"/data/app/org.iotivity.base.examples.simpleserver-1/base.apk"],nativeLibraryDirectories=[/data/app/org.iotivity.base.examples.simpleserver-1/lib/arm,
 /vendor/lib, /system/lib]]] couldn't find "liboc.so"
            at java.lang.Runtime.loadLibrary(Runtime.java:366)
            at java.lang.System.loadLibrary(System.java:988)
            at 
org.iotivity.base.OcRepresentation.<clinit>(OcRepresentation.java:35)
            at 
org.iotivity.base.examples.simpleserver.SimpleServer.onCreate(SimpleServer.java:73)

It seems that the *.so libs are not found even though they have been included 
in the apk.

I am using the iotivity-armeabi-base-debug.aar package.

Could anyone help me fix this?

Thank you,
Andra

Reply via email to