This document describes how to build the Intel® RealSense™ SDK 2.0 including headless tools and examples for Android devices.
Read about Android support here.
To build the AAR from command line, simply navigate to <librealsense_root_dir>/wrappers/android
and run gradlew assembleRelease
on Windows host or ./gradlew assembleRelease
on Linux host.
If the build succeeded, the generated AAR will be located in <librealsense_root_dir>/wrappers/android/librealsense/build/outputs/aar
- Download and install Android Studio IDE.
- Clone the latest RealSense™ SDK 2.0 to your host machine.
- Open Android Studio
- Open the Android project: Menu Bar-->File-->Open-->path to build.gradle
- In the gradle tasks run :librealsense-->build-->assembleRelease:
The build will take few minutes since the library is built for 4 different ABI configurations.
If the build succeeded, the generated AAR will be located in <librealsense_root_dir>/wrappers/android/librealsense/build/outputs/aar
You can also build and run any of the example apps from this project by selecting it from the 'Configuration box' and run it while your target phone is connected: