Forked from steveclarke/Install Android SDK CLI Ubuntu 20.04 WSL2.md
Last active
November 1, 2023 16:05
-
-
Save FaikYY/b89c7d88c05cce013365af7b455d1690 to your computer and use it in GitHub Desktop.
Revisions
-
FaikYY revised this gist
Apr 15, 2021 . 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 @@ -15,7 +15,7 @@ export PATH="$PATH:~/.flutter/flutter/bin" ## Android SDK ```bash wget https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip mkdir -p Android/Sdk unzip commandlinetools-linux-6200805_latest.zip -d Android/Sdk -
FaikYY revised this gist
Apr 15, 2021 . 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 @@ -34,10 +34,10 @@ sdkmanager "system-images;android-30;google_apis_playstore;x86" sudo apt install gradle # to create a virtual machine flutter emulators --create --name androtest # to run the virtual machine (eventhough we set the name as androtest its saving as flutter_emulator, dont know why??) flutter emulators --launch androtest # cd into flutter project and flutter run -
FaikYY renamed this gist
Apr 14, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
FaikYY revised this gist
Apr 14, 2021 . 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 @@ -1,4 +1,4 @@ # Install Flutter and Android Sdk (Virtual Machine) on Ubuntu 20.04LTS without Android Studio ## Install Java 8 @@ -7,7 +7,7 @@ sudo apt install openjdk-8-jdk-headless ``` ### Install the flutter package from the website ### from here https://flutter.dev/docs/get-started/install/linux ### extract it and rename as .flutter to make it hidden (optional) ### export the file in .bashrc or .zshrc export PATH="$PATH:~/.flutter/flutter/bin" -
FaikYY revised this gist
Apr 14, 2021 . 1 changed file with 4 additions and 4 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 @@ -5,10 +5,10 @@ ```bash sudo apt install openjdk-8-jdk-headless ``` ### Install the flutter package from the website ### from here https://flutter.dev/docs/get-started/install/linux ### extract it and renmae as .flutter to make it hidden (optional) ### export the file in .bashrc or .zshrc export PATH="$PATH:~/.flutter/flutter/bin" -
FaikYY revised this gist
Apr 14, 2021 . 1 changed file with 18 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 @@ -5,6 +5,12 @@ ```bash sudo apt install openjdk-8-jdk-headless ``` ## Install the flutter package from the website # from here https://flutter.dev/docs/get-started/install/linux # extract it and renmae as .flutter to make it hidden (optional) # export the file in .bashrc or .zshrc export PATH="$PATH:~/.flutter/flutter/bin" ## Android SDK @@ -22,11 +28,21 @@ sdkmanager --sdk_root=${ANDROID_HOME} "tools" sdkmanager --update sdkmanager --list sdkmanager "build-tools;30.0.3" "platform-tools" "platforms;android-30" "tools" sdkmanager --licenses sdkmanager "system-images;android-30;google_apis_playstore;x86" sudo apt install gradle # to create a virtual machine flutter emulators --create androtest # to run the virtual machine (eventhough we set the name as androtest its saving as flutter_emulator, dont know why??) flutter emulators --launch flutter_emulator # cd into flutter project and flutter run ```` -
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 ```