Last active
September 6, 2017 08:16
-
-
Save m2049r/44b2ba0be4bc39091d8665f76e160a30 to your computer and use it in GitHub Desktop.
Android cli building from scratch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assuming NDK already insalled | |
# install java | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-set-default | |
# install SDK | |
mkdir /opt/android/sdk | |
cd /opt/android/sdk | |
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip | |
unzip ../sdk-tools-linux-3859397.zip | |
tools/bin/sdkmanager --update | |
# get the app sources | |
git clone https://github.com/m2049r/xmrwallet.git | |
cd xmrwallet/ | |
chmod +x gradlew | |
# comment out paths in local.properties | |
vim local.properties | |
export ANDROID_NDK_HOME=/opt/android/android-ndk-r15c | |
export ANDROID_HOME=/opt/android/sdk | |
./gradlew assembleDebug | |
# output is in ./app/build/outputs/apk/app-debug.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment