You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.6 KiB

Build RealSense SDK for Android OS

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.

Instructions

Build With Gradle

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

Build With Android Studio

  1. Download and install Android Studio IDE.
  2. Clone the latest RealSense™ SDK 2.0 to your host machine.
  3. Open Android Studio
  4. Open the Android project: Menu Bar-->File-->Open-->path to build.gradle
  5. In the gradle tasks run :librealsense-->build-->assembleRelease: 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: run_example