This repository contains the Gradle configuration for building LibVLC as an AAR package.
You will need JDK 1.7+ and Ant installed.
Instructions below are for OS X and Homebrew.
- Install Android SDK and NDK.
$ brew install android-sdk
$ brew install android-ndk
- Set the environment.
$ export BREW_HOME="$(brew --prefix)"
$ export ANDROID_HOME="${BREW_HOME}/opt/android-sdk"
$ export PATH="$PATH:${ANDROID_HOME}/tools"
$ export ANDROID_SDK="${BREW_HOME}/opt/android-sdk"
$ export ANDROID_NDK="${BREW_HOME}/opt/android-ndk"
$ export ANDROID_ABI="armeabi-v7a arm64-v8a x86 x86_64"
- Build the SDK.
$ ./gradlew buildSdk
$ ./gradlew assembleRelease
- Deploy to Maven Local.
$ ./gradlew uploadArchives
The dependendency is
compile "org.videolan:libvlc:1.0.0"
- Android Compile โ official documentation.
- Android Port โ official source code.