Created
May 8, 2018 13:37
-
-
Save rustyb/5514ae1311597f8b82ef3b194078bcd0 to your computer and use it in GitHub Desktop.
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
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