

Well to be honest those are topics for the up coming article of the series (WSL for Developers!). Up to this point, you can build your android apps from inside WSL, but isn’t this all about development? where is the emulator? or even attaching a device with USB? What about my IDE and coding experience? You can get a list of all the components available and their versions by running: sdkmanager -list

Sdkmanager "platforms android-30" "build-tools 30.0.3" Now the final part, let's install what we need, feel free to adjust the versions or components depending on your needs! sdkmanager -update You probably should read them (if you haven’t already). You got it right? we need to agree to some licenses. bash_profile or export them the way you like! export ANDROID_HOME= $HOME/androidĮxport ANDROID_SDK_ROOT= $ Accepting SDK licenses The Android SDK requires some environment variables to be set. Rm /tmp/cmd-tools.zip # delete the zip file (optional) Setting up environment variables Mv android/cmdline-tools/cmdline-tools android/cmdline-tools/latest Unzip -q -d android/cmdline-tools /tmp/cmd-tools.zip (Make sure you get the one for Linux, not Windows) cd ~ # Make sure you are at home!

Installing Android Command Line Toolsįirst, we need to get the latest Android command-line tools. You can install OpenJDK 11 if you want, for me I didn't face any issues with both. sudo apt install openjdk-8-jdk-headless gradleĮxport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 You probably know that Android development requires the JDK and Gradle to be installed. Microsoft has an official documentation for installing WSL. You can search online for how to install WSL. In this series (WSL for Developers!) I will document how I do I use WSL for my different development, for the sake of this series I will assume you have already installed WSL with the Ubuntu distro. Now I have both Windows gaming and Linux superpower! About this series In the meanwhile, Windows you know, was kind of getting better over time, with the best achievement of Microsoft arrived (that is WSL) I have switched back to Windows. and used Linux for almost 2 years! everything was perfect except for one thing that you probably know. Out of the blue Windows were a part of the past.

For me, I wanted to switch to Linux so badly, Guess what? I did actually. As any developer, you have probably started your career with a Windows machine, after some time you will begin to notice how Windows is horrible with development stuff (at least this is my opinion).
