

In WSL2 terminal, run adb connect PHONE_ID:5555.It will probably be something like 192.168.0.10n. You can do this from Settings -> About phone -> Status -> IP address. You will not see any device yet, but this will start up adb. In Powershell on Windows, run adb tcpip 5555.In Powershell on Windows, run adb devices.Make sure your phone is connected to your PC via USB and then you have set up USB debugging.In my case, I added alias adb='/home/MYUSERNAME/Android/Sdk/platform-tools/adb' to my. You need to make sure that you are using the same version of adb on Windows and Linux, which is why I installed the latest Android Studio on both. In the SDK Manager in Android Studio, make sure you have an SDK installed that supports your phone (I had an older phone that needed an older SDK). Add this path: C:\Users\MYUSERNAME\AppData\Local\Android\Sdk\platform-tools. Under System variables, look for Path, click Edit, and then New. From File Explorer, right-click on This PC and then choose Advanced system settings, then Environment Variables. Add adb to the environment variables on Windows.Install Android Studio on Windows (to get the SDK, SDK can also be installed another way).Open your terminal and run the apt update command below to update your system’s package index.Here's what I had to do based on this Medium post. To install the OpenJDK version of the JDK:ġ. Related: Automate your Java Builds and Install Maven on Ubuntu

But before jumpstarting your journey with Android Studio, you first have to install Java Development Kit (JDK) since Android Studio is written in Java. Related: How to Install Ubuntu 20.04 Installing Java JDKĪndroid Studio delivers blazing-fast tools so you can build apps on every type of Android device.

If you’d like to follow along, be sure you have A Linux Ubuntu system – This tutorial uses Ubuntu 20.04. This tutorial will be a hands-on demonstration. Sounds interesting? Dive in and build your own Android apps in no time! Prerequisites In this tutorial, you’ll learn how to get started with Android Studio. Building a mobile app on a local computer may sound complicated. Have you been fascinated by the apps you see on your Android phone? Why not create one yourself? Android Studio on your Ubuntu machine is just what you need.Īndroid Studio is the official Integrated Development Environment (IDE) for developing Android apps by Google.
