Last active
September 13, 2018 13:21
-
-
Save sktt/3e819ff6d410665f58204f60d295e7c9 to your computer and use it in GitHub Desktop.
all the stuff without any android-studio!
This file contains hidden or 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
# make sure to not have conflicts.. | |
sudo apt remove android-sdk{,-platform-tools,-build-tools} adb | |
sudo apt autoremove | |
mkdir ~/GREEN_LAB | |
cd ~/GREEN_LAB | |
# https://developer.android.com/studio/#command-tools | |
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -O android-sdk-tools.zip | |
unzip -d android-sdk android-sdk-tools.zip | |
./android-sdk/tools/bin/sdkmanager 'platform-tools' 'system-images;android-28;google_apis;x86_64' | |
./android-sdk/tools/bin/avdmanager create avd --name greeny --device 'Nexus 6P' --package 'system-images;android-28;google_apis;x86_64' | |
echo 'export ANDROID_SDK_ROOT="$HOME/GREEN_LAB/android-sdk"' >> ~/.zshenv | |
echo 'export PATH="$PATH:$ANDROID_SDK_ROOT/platform-tools"' >> ~/.zshenv | |
./android-sdk/tools/emulator '@greeny' | |
which adb | |
# /home/jnes/GREEN_LAB/android-sdk/platform-tools/adb | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment