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
9 3. Configure dependencies for libs in app/build.gradle
10 - default TARGET_ARCH is armeabi
11 - default MODE is release
13 for example, if you build Iotivity as follows,
15 $scons TARGET_OS=android TARGET_ARCH=x86 RELEASE=0
17 then, dependencies should be modified like below
20 compile(name:'iotivity-x86-service-debug', ext:'aar')
21 compile(name:'iotivity-x86-base-debug', ext:'aar')