* Android Studio: Ubuntu version
* Android SDK: Min version 24 (Nougat)
* Android NDK: Use default ndk-bundle in Android Studio
- * GStreamer: gstreamer-1.0-android-universal-1.16.1
+ * GStreamer: gstreamer-1.0-android-universal-1.16.2
## Build library
```bash
$ export ANDROID_DEV_ROOT=$HOME/android # Set your own path (The default path will be "$HOME/Android".)
$ mkdir -p $ANDROID_DEV_ROOT/tools/sdk
+$ mkdir -p $ANDROID_DEV_ROOT/tools/ndk
$ mkdir -p $ANDROID_DEV_ROOT/gstreamer-1.0
$ mkdir -p $ANDROID_DEV_ROOT/workspace
$
export ANDROID_DEV_ROOT=$HOME/android # Set your own path (The default path will be "$HOME/Android".)
#
# $ANDROID_DEV_ROOT/tools/sdk # Android SDK root directory (default location: $HOME/Android/Sdk)
+# $ANDROID_DEV_ROOT/tools/ndk # Android NDK root directory (default location: $HOME/Android/Sdk/ndk/<ndk-version>)
# $ANDROID_DEV_ROOT/gstreamer-1.0 # GStreamer binaries
# $ANDROID_DEV_ROOT/workspace/nnstreamer # NNStreamer cloned git repository
#
-export ANDROID_SDK=$ANDROID_DEV_ROOT/tools/sdk # Android SDK (The default path will be "$HOME/Android/Sdk".)
-export ANDROID_HOME=$ANDROID_SDK
+export ANDROID_SDK=$ANDROID_DEV_ROOT/tools/sdk
+export ANDROID_NDK=$ANDROID_DEV_ROOT/tools/ndk
+export ANDROID_SDK_ROOT=$ANDROID_SDK
+export ANDROID_NDK_ROOT=$ANDROID_NDK
export GSTREAMER_ROOT_ANDROID=$ANDROID_DEV_ROOT/gstreamer-1.0
export NNSTREAMER_ROOT=$ANDROID_DEV_ROOT/workspace/nnstreamer
```
For example,
```bash
$ cd $ANDROID_DEV_ROOT/gstreamer-1.0
-$ wget https://gstreamer.freedesktop.org/data/pkg/android/1.16.1/gstreamer-1.0-android-universal-1.16.1.tar.xz
-$ tar xJf gstreamer-1.0-android-universal-1.16.1.tar.xz
+$ wget https://gstreamer.freedesktop.org/data/pkg/android/1.16.2/gstreamer-1.0-android-universal-1.16.2.tar.xz
+$ tar xJf gstreamer-1.0-android-universal-1.16.2.tar.xz
```
Modify the gstreamer-1.0.mk file for NDK build to prevent build error.
- Build options
1. target_abi: Default arm64-v8a, specify the ABI (armeabi-v7a, arm64-v8a) to be built for with `--target_abi={TARGET-ABI}`.
- 2. build_type: Get the minimized library with GStreamer core elements `--build_type=lite`.
+ 2. build_type: Default all.
+ - `--build_type=single` to enable SingleShot API only.
+ - `--build_type=lite` to get the minimized library with GStreamer core elements.
3. run_test: Run the instrumentation test `--run_test=yes`.
```bash
# --build_type (default 'all', 'lite' to build with GStreamer core plugins)
# --target_abi (default 'arm64-v8a', 'armeabi-v7a' available)
# --run_test (default 'no', 'yes' to run the instrumentation test)
-# --enable_snap (default 'yes' to build with sub-plugin for SNAP)
-# --enable_nnfw (default 'yes' to build with sub-plugin for NNFW)
+# --enable_snap (default 'no', 'yes' to build with sub-plugin for SNAP)
+# --enable_nnfw (default 'no', 'yes' to build with sub-plugin for NNFW)
# --enable_tflite (default 'yes' to build with sub-plugin for tensorflow-lite)
#
# For example, to build library with core plugins for arm64-v8a
release_bintray="no"
# Enable SNAP
-enable_snap="yes"
+enable_snap="no"
# Enable NNFW
-enable_nnfw="yes"
+enable_nnfw="no"
# Enable tensorflow-lite
enable_tflite="yes"