Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rustyb/5514ae1311597f8b82ef3b194078bcd0 to your computer and use it in GitHub Desktop.
Save rustyb/5514ae1311597f8b82ef3b194078bcd0 to your computer and use it in GitHub Desktop.
sudo apt-get install openjdk-8-jdk
# gradle install
wget https://services.gradle.org/distributions/gradle-4.6-bin.zip
sudo mkdir /opt/gradle
sudo unzip -d /opt/gradle gradle-4.6-bin.zip
cd ~
echo "export PATH=\$PATH:/opt/gradle/gradle-4.6/bin" >> ".profile"
cd ~/Desktop
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
sudo mkdir /opt/android-sdk
sudo unzip -d /opt/android-sdk sdk-tools-linux-3859397.zip
cd /opt/
sudo chown root:root "android-sdk" -R
sudo chmod 777 "android-sdk" -R
cd /opt/android-sdk/tools/bin
./sdkmanager "platform-tools" "platforms;android-26" "platforms;android-27" "build-tools;27.0.3" build-tools;26.0.3
cd ~
echo "export PATH=\$PATH:/opt/android-sdk/tools" >> ".profile"
echo "export PATH=\$PATH:/opt/android-sdk/platform-tools" >> ".profile"
echo "export ANDROID_HOME=/opt/android-sdk"
./sdkmanager "system-images;android-26;google_apis;x86_64"
./avdmanager create avd --name testAVD --package 'system-images;android-26;google_apis;x86_64'
# installing anroid dev rules see -> https://github.com/M0Rf30/android-udev-rules
once added go tto /opt/android-sdk/platform-tools
./adb devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment