Forked from steveclarke/Install Android SDK CLI Ubuntu 20.04 WSL2.md
Created
December 7, 2021 12:11
-
-
Save d1soft/54d2fc9d1a77050bdbb0f37e57c9d72d to your computer and use it in GitHub Desktop.
Revisions
-
steveclarke revised this gist
Dec 7, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress) ## Install Java 8 -
steveclarke revised this gist
Sep 24, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,8 @@ sudo apt install openjdk-8-jdk-headless ```bash wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip mkdir -p Android/Sdk unzip commandlinetools-linux-6200805_latest.zip -d Android/Sdk export ANDROID_HOME=$HOME/Android/Sdk # Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded -
steveclarke revised this gist
Jun 16, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,10 +12,10 @@ sudo apt install openjdk-8-jdk-headless wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip unzip commandlinetools-linux-6200805_latest.zip -d Android export ANDROID_HOME=$HOME/Android/Sdk # Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded # instead of the one from /emulator export PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH" sdkmanager --sdk_root=${ANDROID_HOME} "tools" -
steveclarke revised this gist
May 10, 2020 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,9 @@ wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_lat unzip commandlinetools-linux-6200805_latest.zip -d Android export ANDROID_HOME=$HOME/Android # Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded # instead of the one from /emulator PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH" sdkmanager --sdk_root=${ANDROID_HOME} "tools" -
steveclarke revised this gist
May 10, 2020 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -31,4 +31,7 @@ Note: you can get an updated Android SDK link from https://developer.android.com Used a combinaton of these gists: https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0 https://gist.github.com/jjvillavicencio/18feb09f0e93e017a861678bc638dcb0 Background on the update to command line tools from android sdk https://stackoverflow.com/a/61176718 -
steveclarke revised this gist
May 10, 2020 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,6 +16,15 @@ export ANDROID_HOME=$HOME/Android PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH" sdkmanager --sdk_root=${ANDROID_HOME} "tools" sdkmanager --update sdkmanager --list sdkmanager "build-tools;28.0.3" "platform-tools" "platforms;android-28" "tools" sdkmanager --licenses sudo apt install gradle ```` Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads -
steveclarke revised this gist
May 10, 2020 . 1 changed file with 10 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,10 +8,17 @@ sudo apt install openjdk-8-jdk-headless ## Android SDK ```bash wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip unzip commandlinetools-linux-6200805_latest.zip -d Android export ANDROID_HOME=$HOME/Android PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH" sdkmanager --sdk_root=${ANDROID_HOME} "tools" ```` Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads Used a combinaton of these gists: https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0 -
steveclarke revised this gist
May 10, 2020 . 1 changed file with 8 additions and 19 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,29 +1,18 @@ # Install Android SDK CLI (Work in Progress) ## Install Java 8 ```bash sudo apt install openjdk-8-jdk-headless ``` ## Android SDK ○ → wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads ○ → sdkmanager --sdk_root=${ANDROID_HOME} "tools" Used a combinaton of these gists: https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0 https://gist.github.com/jjvillavicencio/18feb09f0e93e017a861678bc638dcb0 -
steveclarke revised this gist
May 9, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -25,3 +25,5 @@ Set `JAVA_HOME`. Add the following to `~/.bashrc` ```bash export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ``` https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0 -
steveclarke renamed this gist
May 9, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
steveclarke revised this gist
May 9, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Install Android SDK CLI (Work in Progress) ```bash sudo apt install android-sdk -
steveclarke created this gist
May 9, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ # Install Android SDK CLI ```bash sudo apt install android-sdk ``` Installs to `/usr/lib/android-sdk` ## Install Java 8 ```bash sudo apt install openjdk-8-jdk ``` Set default `java` and `javac` to v8 ```bash sudo update-alternatives --config java sudo update-alternatives --config javac ``` Set `JAVA_HOME`. Add the following to `~/.bashrc` ```bash export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ```