3 1. build Iotivity with TARGET_OS=android
5 2. Copy aar files into app/libs folder
6 - {Iotivity_root}/android/android_api/base/build/outputs/aar/iotivity-{TARGET_ARCH}-base-{MODE}.aar
7 - {Iotivity_root}/service/resource-encapsulation/android/service/build/outputs/aar/iotivity-{TARGET_ARCH}-service-{MODE}.aar
8 - {Iotivity_root}/service/resource-container/android/resource-container/build/outputs/aar/iotivity-{TARGET_ARCH}-resource-container-{MODE}.aar
10 3. Configure dependencies for libs in app/build.gradle
11 - default TARGET_ARCH is armeabi
12 - default MODE is release
14 for example, if you build Iotivity as follows,
16 $scons TARGET_OS=android TARGET_ARCH=x86 RELEASE=0
18 then, dependencies should be modified like below
21 compile(name:'iotivity-x86-base-debug', ext:'aar')
22 compile(name:'iotivity-x86-service-debug', ext:'aar')
23 compile(name:'iotivity-x86-resource-container-debug', ext:'aar')