Install Android Studio

Android Studio is the official Integrated Development Environment (IDE) for Android application development, based on IntelliJ IDEA.

Welcome to the first chapter of our course “Begin Android Application Development with MindOrks”. Here, you are going to learn how to make your machine and device ready for Developing Android Apps.

Before starting the installation process, please Download the latest version of Android Studio. You should have JDK (Java SE Development Kit) 7+and you can download it from here. Ready to get started? Read on below!

Installation on Windows Machine

Requirements:

  • 3 GB RAM minimum, 8 GB RAM recommended
  • 1280 x 800 minimum screen resolution
  • Microsoft® Windows® 7/8/10 (32- or 64-bit)

Let’s install Android Studio on Windows:

  1. For .exe file (recommended), double-click to launch it.
  2. For the .zip file, unpack the ZIP, copy the android-studio folder into your Program Files folder, and then open the
    android-studio > bin > studio64.exe (for 64-bit) or studio.exe (for 32-bit).
  3. Follow Android Studio Setup Wizard which helps you with rest of the process and install any recommended SDK packages.

Custom SDK — If you have SDK files with you, select Custom Install in the Install Type. In the SDK components uncheck SDK. You will be prompted to provide the location of the SDK directory.

Java Not Find Error — If in the launching process of Android Studio does not find where the Java installed, you need to set an environment variable indicating the correct location. Select Start menu > Computer > System Properties > Advanced System Properties > Advanced tab > Environment Variables and add a new system variable JAVA_HOME that points to your JDK folder, e.g. C:\Program Files\Java\jdk1.7….

Installation on MAC

Requirements:

  • 3 GB RAM minimum, 8 GB RAM recommended
  • 1280 x 800 minimum screen resolution
  • Mac OS X 10.10 or higher

Let’s install Android Studio on your Mac:

  1. Download and Launch the Android Studio DMG file from here
  2. Drag Android Studio into the Applications folder and launch Android Studio.
  3. Check/Uncheck to import previous Android Studio settings, then click OK.
  4. Follow Android Studio Setup Wizard which helps you with rest of the process, also includes downloading Android SDK components that required for development.

DMG Damage Error — If you see a warning when opening Android Studio that says the package is damaged, go to System Preferences > Security & Privacy and under Allow applications downloaded from, select Anywhere. Then open Android Studio again.

Installation on Linux Machine

Requirements:

  • 3 GB RAM minimum, 8 GB RAM recommended
  • 1280 x 800 minimum screen resolution
  • GNOME or KDE desktop, GNU C Library (glibc) 2.19 or later

Let’s install Android Studio on Linux:

  1. Unpack the .zip file downloaded to your preferred location, such as within /usr/mindorks/ for your user profile.
  2. To launch Android Studio, open a terminal, navigate to the directory android-studio/bin, and execute studio.sh.
  3. Check/Uncheck to import previous Android Studio settings, then click OK.
  4. Follow the Android Studio Setup Wizard which helps you with rest of the process, also includes downloading Android SDK components that required for development.

For 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++i386 lib32z1 libbz2–1.0:i386

For 64-bit Fedora, the command is:

sudo yum install zlib.i686 ncurses-libsi686 bzip2-libs.i686

Note: You can add android-studio/bin/ o your PATH environment variable so that you can start Android Studio from any directory.

Enable Developer Options

To enable your device to run the application directly from Android Studio to mobile, you need to configure your device by allowing Developer Options.

Go to Settings > System > About Phone > Tap Build Number 7 times > Return to the previous screen to see Developer Options.
Enable USB Debugging inside it which helps your Android Studio to recognise your device when connected via USB.

In this chapter, you learn about how to install Android Studio IDE and how to configure your device. This is the first step you had taken as an Android Developer.

Congratulations!! Let's continue with the next chapter.