Hi Davi, I would not recommend using the android_api branch as it is no longer maintained.
If you haven?t yet modified your local copy of master, here is the patch that is changing the ConnectivityType in examples from WIFI to IPV4: https://gerrit.iotivity.org/gerrit/#/c/1083/ Best regards, Tim From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Davi Di?rio Mendes Sent: Thursday, May 21, 2015 10:25 AM To: iotivity-dev at lists.iotivity.org Subject: [dev] UsatisfiedLinkError on android Hi all, I am wonrking on master branch, commit 887d789ee50b0d2ca5e520d872aeb507ddbd0f31. I builded iotivity for android following wiki guide, now I get this error when run simpleserver or another else server example. In the clients gradle cannot find OcConnectivityType.WIFI. Does someone have a lead? Is not the master branch ready to work? I tried to build in android-api branch but the build script does not download boost, then stop compiling because can not find boost/lexical_cast.hpp. If I download boost by hand and unpack it in extlibs/boost, it still not finding dependencies. I know you are working at 0.91 release, sorry bothering with minor things. But I have a lecture scheduled to Friday, next week, and I do not want to do a checkout back to what I used. I would like to show what is actually done. Thanks. 05-21 14:05:58.337 19920-19920/org.iotivity.base.examples.simpleserver E/AndroidRuntime? FATAL EXCEPTION: main Process: org.iotivity.base.examples.simpleserver, PID: 19920 java.lang.UnsatisfiedLinkError: dlopen failed: could not load library "liboctbstack.so" needed by "liboc.so"; caused by could not load library "libconnectivity_abstraction.so" needed by "liboctbstack.so"; caused by cannot locate symbol "pthread_condattr_setclock" referenced by "libconnectivity_abstraction.so"... at java.lang.Runtime.loadLibrary(Runtime.java:365) at java.lang.System.loadLibrary(System.java:526) at org.iotivity.base.OcRepresentation.<clinit>(OcRepresentation.java:35) at org.iotivity.base.examples.simpleserver.SimpleServer.onCreate(SimpleServer.java:72) at android.app.Activity.performCreate(Activity.java:5458) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470) at android.app.ActivityThread.access$900(ActivityThread.java:174) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5593) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) at dalvik.system.NativeStart.main(Native Method) -- Davi Di?rio Mendes Eng. de Computa??o - Turma de 2011 Universidade de S?o Paulo - EESC/ICMC -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150522/46b282b6/attachment.html>