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.
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
| # 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 | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Flutter instructions added