WebRTC: Compile Native WebRTC Android SDK
The very first step of modifying native WebRTC SDK for Android is cloning source code from WebRTC repository and compiling it into jar.
depot_tools is a set of version control/build tools. We can get it from chromium repository:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Then export those tools into
Checkout to your base branch
I was using
Install build dependencies and compile
build_aar.py will compile code, and package native and jar libraries into webrtc_android/src/libwebrtc.aar
Use the built libwebrtc.aar in your Android Studio app project
- Copy aar files to
- If you have
build.gradle, remove it.