Single Command to install Android studio on Windows 11 or 10

Android Studio is for developers interested in creating, testing, and deploying Android applications on their PC or laptop. It is an Integrated Development Environment (IDE ) that comes with a virtual emulator to test the applications just like we do on smartphones, tablets, or other Android-powered devices. Further, you will have several other important features such as code editing, debugging, and a visual user interface designer. Being a cross-platform developing platform we can use it on all popular operating systems including Windows.

Although installing software on Windows is not a complicated task, however, downloading and then installing them can be time-consuming. Instead, we can issue a single command on our Windows terminal or Powershell that will not only download but also install Android Studio or any other common application without visiting a third-party website.

Let’s learn the steps involved in this simple Android Studio installation or uninstallation on a Windows 11 PC or laptop.

System Requirements:

Before following this tutorial ensure you have the following things on your system to smoothly execute all the steps given here:

  • Operating System: Windows 10 or 11
  • Administrative access
  • Disk Space: A minimum of 4 GB of available disk space.
  • RAM: A minimum of 4 GB (8 GB recommended).
  • Internet Connection

Open Windows Terminal or PowerShell

As we are going to use the command interface for the installation of Android Studio, hence, first open your PowerShell or Terminal. For that, you can simply right-click on your Windows Start button and select Terminal (Admin) or PowerShell (admin).

Check Winget

All Windows 11 including the latest Windows 10 updated versions come with Microsoft’s default package manager called “Winget“. Just any Linux package manager, we can use it to install common applications on our operating system with a single command. Run:

winget --version

You will see the current version of Winget which also confirms you already have it on your system.

Installing Android Studio on Windows 11

As we discussed to install the Android Studio, we are not going to download its setup manually from its website, instead, we opt for a single command of Winget. So, simply in your PowerShell, run the given syntax.

winget install Google.AndroidStudio

This Google’s Android IDE platform is available in three versions, one is stable and ready to use. Whereas, the other two are beta and canary which are still in the development stage. Beta is slightly more stable than Canary. So, if you want to test out the latest feature without waiting for the stable version, can go for the Beta or Canary.

For Beta Version

Google.AndroidStudio.Beta

For Canary Version

Google.AndroidStudio.Canary

3: Configure Android Studio

  1. When Android Studio launches for the first time, you’ll be prompted to import settings. If you’re a new user, choose “Do not import settings” and click “OK.”
Do not import Android studio settings
  1. Once the updates are complete, you’ll be presented with the Android Studio Welcome screen. After that select “Standard” as a type of setup.
Instalaltion type
  1. Select a Dark or light theme.
Dark or light theme Android studio
  1. Select the components of the Android Studio to install and then accept the corresponding license available to them.
Accept Google SDK license
  1. Android Studio will download and update the necessary SDK components. This process may take some time.
Download and install SDK patches
  1. Once done you can start writing your code to develop Android applications…
Install Android Studio on Windows 11

4. Uninstallation

If in the future you want to remove the Android Studio from Windows 11 or 10 but using the command terminal, then again open PowerShell or CMD as admin and run:

winget remove Google.AndroidStudio

To remove SDK and projects as well:

Replace “your-user” with your current user or manually navigate to the following given directory through your file manager:

Go to C:\Users\your-user\ AndroidStudioProjects

Go to C:\Users\your-user\AppData\Local\SDK

Remove SDK folder of Android Studio

Conclusion:

You’ve successfully installed Android Studio on your Windows computer along with the Android SDK and emulator, you can now start coding, testing, and deploying your Android apps.