- Install java:
sudo pacman -S jdk8-openjdk jre8-openjdk jre8-openjdk-headless
- Install Android SDK:
sudo pacman -S snapd
sudo snap install androidsdk
- Configure your SDK location in your
~/.bash_profile
or~/.bashrc
:
export ANDROID_SDK_ROOT=~/snap/androidsdk/current/AndroidSDK/
- Install the platform tools for your target android version:
androidsdk "platform-tools" "platforms;android-28"
- Compile the project. This will install all dependencies, make sure to accept licenses when prompted.
./gradlew assembleDebug
-
If you haven’t done already, then Enable ‘Developer options’ on your phone
-
Connect your phone and install the debug APK
adb install ./app/build/outputs/apk/debug/app-debug.apk