How to install Android Studio IDE on a Windows PC without errors…

In this tutorial, you’ll learn how to download and install Android Studio IDE Software on a windows PC without errors.

Overview:

Android Studio IDE is the official, cross-platform and fully Integrated Development Environment (IDE) designed specifically for Google’s Android Operating System App development. Android Studio was built on JetBrainsIntelliJ IDEA software and the latest stable version as of writing this tutorial is version 4.1.3 released on 18th March 2021.

Android Studio was designed to provide the fastest tools for building apps on every type of Android device (that is Android smartphones, tablets, smart watches, automobiles and Televisions).

Android Studio was also designed to provide an alternative to Eclipse, which has been the most widely used IDE for Android app development.

 

 

Some of the killer features Android Studio IDE has to offer include the following;

  1. Intelligent Code Editor: This feature enables you to write better code faster and even be more productive with code completion for Kotlin, Java and C/C++ languages.
  2. Fast Emulator: The emulator allows you to install and run your apps faster as compared to using a physical device. It gives you the ability to simulate different configurations and features including ARCore and Google’s platform for building Augmented Reality (AR) experiences.
  3. Visual Layout Editor: This feature allows you to create complex layouts by adding constraints from each view to other views. It also enables you to preview your layout on any screen size by selecting one of the various device configurations.
  4. APK Analyzer; This feature gives you the opportunity to reduce your Android app size by inspecting the contents of your app APK file even if it wasn’t built with Android Studio.
  5. Flexible build system: This allows you to customize your build to generate multiple build variants for different devices from a single project.
  6. Realtime profilers: These built-in profiling tools provide real-time statistics for your app’s CPU, memory and network activity.

 

 

Video Tutorial (Installation Guide):

Watch the video here for installation instructions…

 

 

If you prefer step-by-step written instructions other than the video above, then continue reading;

Step 1: Download and install the Java Development Kit (JDK) from here; (The link is down below). You should note that the Java Runtime Environment (JRE) comes bundled with the JDK.

Step 2: Edit the Java Environment variables and Java Home for the Java command to work with the JDK and the JRE (watch the video to see how this is done).

Step 3: Run a few checks with the Windows Command prompt to check if the Java command is working with it or not. Run the following commands to test; (that is “java -version”, “javac -version”).

Step 4: After the JDK is successfully installed on your windows PC, then download and install the Android Studio IDE 4.1.2 (The link is down below).

Step 5: Follow along the installation guide by clicking “Next” to complete the Android Studio setup installation and select the “Start Android Studio” option before clicking Finish.

Step 6: Upon launching Android Studio for the first time, you’ll be asked whether you would prefer to import Android studio settings from the previous installation or not, we suggest you select “Do not import settings” if it’s your first time installing Android Studio.

Step 7: You’ll be asked whether you would want to send “android studio usage statistics to Google” and if you don’t wish to do so, just click on “Don’t send”.

Step 8: On the Android Studio wizard that appears, you’ll be able to set up your development environment for Android Studio according to your preferences. For the Installation Type, Select “Standard” if you are new user.

Step 9: Select the UI theme of your choice. Either Darcula – the dark mode theme or “Light” – the light mode theme.

Step 10: Verify all of your preferred settings and if you wish to change any of them, click “Previous” otherwise click “Finish”.

Step 11: After verifying everything, the setup wizard will then start downloading components (some extra tools listed in the verify settings). You need an internet connection for the components to download and also you need to give the setup wizard some time to complete the download.

Step 12: Once the process is finished, click “Finish”. You have successfully installed Android Studio IDE on your Windows PC.

 

Creating a sample Android App Project:

To create a sample android Studio Project, follow the steps below;

Step 1: While at the Android Studio Start screen, select “Start a new Android Studio Project”.

Step 2: Select a project template by choosing one of the following templates that is “Phone and Tablet”, “Wear OS”, “TV OS”, “Automotive” and “Android Things”.

Step 3: For test purposes, we shall select “Phone and Tablet” and we’ll select an Empty Activity.

Step 4: On the next page you’ll be required to configure your project by giving it a name, a package name, save location, your preferred language (Kotlin or Java), and also select the preferred “Minimum SDK” and click on finish to start the Android Studio for the first time.

Step 5: On the application project window, you’ll see the updates of what’s new on the right-hand side, in the center is where you’ll write your Java/Kotlin code in the “MainActivity.java” and design your android app in the “activity_main.xml” and on the left-hand side you’ll see the project files and folders.

Step 6: At the bottom of the project window, you’ll see the Gradle downloading some files. You’ll need to wait for the download to complete. Still at the bottom, you’ll be able to see the “Terminal” the build status for your android app under “Build”.

Step 7: After the Gradle download is complete and your build is successful, under “activity_main.xml” you’ll be able to see the design view, the split view with both the design view and code or the code view which displays just the code.

Step 8: To be able to run your sample project, you’ll need to select a virtual device of your choice otherwise you’ll get an error (“Error running ‘app’ No target device found”). By default, no virtual device is selected in the previous versions, this was changed in version 4.1.2 and later (Pixel 3a, API 30) is selected by default.

N.B Android Virtual Devices (AVD) allow you to test your application without having to own a physical device.

Step 9: To create a new virtual device, click on “No Devices” and select “Open AVD Manager”, then click on “Create Virtual Device”. While here, you can select any virtual device from the different categories (TV, Phone, Tablet, Wear OS, and Automotive) of your choice for you to test your android app.

Step 10: After selecting your preferred virtual device, the next thing is to select a system image. To do this, select your preferred Release Name of a given API level (say, Oreo with API 27) and then click download. Click on “Accept” the license agreement and it will start to install the requested components.

Step 11: Once the installation is complete, click on “Finish” and when you select your preferred system image that has been downloaded, it will show you that HAXM is not installed (this only happens in the previous versions of Android Studio).

Step 12: HAXM which stands for (Hardware Accelerated Execution Manager) is for the Emulator and to install it, just click on the link given there “Install HAXM”. You can keep the default settings of 4GB (which is recommended) or increase it to your liking.

Step 13: After the installation is complete, you’ll see that the Android SDK is up-to-date and the Intel HAXM updated successfully. Click on “Finish” and then click “Next” to select the Setup orientation (Portrait or Landscape).

Step 14: You have successfully created your Android Virtual Device and now you can go back under Devices and select your preferred virtual device for your sample project from the drop-down list.

Step 15: Click Run and see how your android app on your preferred virtual device.

 

Minimum System Requirements…

Before installing the software on your PC make sure it meets the following minimum system requirements;

Android Studio IDE Requirements:

  • Operating System: Windows 7/8/8.1/10
  • Memory (RAM); 4 GB of RAM required, 8 GB Recommended
  • Hard Disk space: 2 GB of free space required, 4GB Recommended (500 MB for the IDE + 1.5 GB for Android SDK and emulator system image)
  • Processor: 3 GHz Intel Core i3 processor or later
  • Display: 1280 x 800 minimum screen resolution.
  • Architecture: 64-bit (x64) windows.

 

Emulator System Requirements:

The Android Emulator has additional requirements beyond the basic system requirements for Android Studio and these include;

  • SDK tools 26.1.1 or higher
  • HAXM 6.2.1 or later (HAXM 7.2.0 or later recommended)
  • Intel processor on Windows with support for Intel VT-x, Intel EM64T (Intel 64) and Execute Disable (XD) Bit functionality.
  • AMD processor on Windows; Android Studio 3.2 or higher and Windows 10 April 2018 release or higher for Windows Hypervisor Platform (WHPX) functionality.
  • To work with Android 8.1 (API Level 27) and higher system images, an attached webcam must have the capability to capture 720p frames.

 

Android Studio IDE and Java JDK free Download:

Please Note: As of writing this tutorial, (March/2021), the current version of Android Studio IDE is 4.1.3 and the current version of the Java Development Kit (JDK) is 16.

Click on the red button below to download Android Studio IDE.

Download Android Studio IDE

 

Click on the red button below to download Java Development Kit (JDK).

Download Java Development Kit (JDK)

 

So basically this is how you download, install and create a sample android app project with Android Studio IDE on your Windows PC. We hope you had a smooth ride with the entire installation process. In case you encounter any errors during the installation process, feel free to leave a comment below;

 

Have fun designing and developing your Android Applications….


 

 

Tum Kurtzman
Author: Tum Kurtzman

Computer Engineer, Ugandan Life Hacker, Tech Blogger, YouTuber, Founder & Lead Engineer at SONALABS.ORG... Tum completed his BSc. in Computer Engineering from Makerere University and you can reach him via e-mail at tum@sonalabs.org.

Leave a Reply