Hi, Did you add the iotivity-armeabi-base-debug.aar as a module into dependencies list of your project ? Without it, your application cannot find the necessary native libs.
Thank you. Jay. > 2015. 7. 8., ?? 8:24, Paraschiv, Andra <andra.paraschiv at intel.com> ??: > > 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 > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org > https://lists.iotivity.org/mailman/listinfo/iotivity-dev