Install Android Studio (Windows/Mac)

Install Android Studio for Windows and Mac

Android Studio is free app based on JetBrains IntelliJ software and is the official Integrated Development Environment (IDE) for creating Android apps and include the following features:

There are two version of IntelliJ Idea:

  1. Community Edition which Android Studio is based on and it is free.
  2. Utlimate Edition which has tools for JavaScript, Java Enterprise Edition (JEE), and databases.

Software Development Kit (SDK)

Android SDK includes tools to create, debug and analyze apps:

  • Emulators (with Android Studio) and simulators (with Xcode)
  • Debugging tools
  • Analyzing and optimizing tools
  • Documentation and source code
  • Code samples

SDK Manager

In order to use the tools, documents and code mentioned above, the Android SKD Manager is used to download these resources.
  • Build Tools—to build and compile apps (e.g., Tools > Android SDK Build-tools Rev 24 Installed)
  • Android Versions— (e.g., Android 5.01 (API 21), Android 4.4S. (API 19)) Which include system images, samples, and APIs and source code.
  • Extras folder—support libraries, additional tools and drivers
  1. Go to http://developer.android.com/sdk.
  2. Click the DOWNLOAD ANDROID STUDIO FOR WINDOWS or MAC button.
  3. On the Download page that appears, read the Android SDK License Agreement Terms and Conditions, select the "I have read and agree with the above terms and conditions" checkbox and then click the DOWNLOAD ANDROID STUDIO FOR WINDOWS button.


  4. In the dialog box that appear, save the installer to your computer (e.g., desktop).
  5. Double-click on the installer:
    1. On Windows it is an exec (executable) file.
      NOTE: If a User Account Control dialog appears, click the Yes button.


    2. On the Mac, it is a dmg file.  In the Andriod Studio dialog box that appears, drag-and-drop the Android Studio icon to the Applications folder. Using the Finder, go the the Applications folder and double-click on the Android Studio app. You will be prompted that you are downloading an application from the Internet...click the Open button.

      ADD SCREEN SHOT HERE FOR MAC

  6. Click the Next button and on the Android Studio Setup dialog box that appears, select all options:
    • Android Studio - The Android developer environment to design and develop apps.
    • Android SDK - collection of Android platform APIs, tools and utilities that enable you to debug, profile, and compile apps.
    • Android Virtual Device - preconfigure and optimized  Android Virtual Device for app testing on emulator.
    • Performance (Intel HAXM) - a hardware-assisted virtualization engine (supervisor) which speeds up Android emulation on your development computer. The Intel HAXM allow you to manage FAST virtual devices on an Intel emulator instead of an ARM-based emulator.
      NOTE: This only works with Intel processors AND only if you have 8G of memory or more installed. Otherwise, you will have to select ARM (Android Runtime Machine) as the option to install
  7. Click the Next button.


  8. On the next screen that appears, review the License Agreement and then click the I Agree button to accept it.
  9. On the next screen that appears, accept the default location for the Android Studio but change the location for the Android SDK (e.g., Home directory--Android/SDK) so that it can be easier to get to.


  10. Click the Next button.
  11. On the next screen that appears, accept the default GB of memory if you have 8G or least. If you have more than 8G and you plan to run more than one virtual device ata time you can increase the amount to about 1-2G for each virtual device you intent to run.
    WHY:To configure Intel HAXM software that is used to speed up the Android emulator.


  12. Click the Next button and then the Install button.
    NOTE: It will take a while to install all of the components onto your computer from the installer and from the web. You will later be ask to install the SDK.????
  13. Once you see the notice that indicates the setup was completed successfully, click the Next button and then click the Finish button to start Android Studio for the first time.
  14. In the Complete Installation dialog box that appears, if this is your first version of Android Studio or you want to start with a fresh copy, click the second option. If you do want to import the settings, select the first option to import the settings.


  15. Click the OK button and in the dialog box that appears, click the OK button to allow access.
  16. CHECK POINT: If this is the first time Android Studio has been installed, you will see the Setup Wizard where you will download additional SDK components.


  17. Click the Finish button.

If you want to get the most recent BETA version:

  1. Go to http://tools.android.com/recent.
  2. Click the link for the download page to find links for zip files for each operating systems.
  3. Download the zip file onto the desktop and right-click and select Extract all to unzip it any where you want (e.g., Desktop)
  4. CHECK POINT: You should see the Android Studio icon for the latest version. Android Studio allows you to have multiple versions side-by-side as long as they have different name.
  5. If you have an older version already installed, you need to rename it in the Application directory.
  6. Double-click to open the folder and then in double-click on the bin folder to open it.
  7. In the bin folder, double-click on the 32 bit (Studio.exe) or 64 bit (Studio64.exe) version of Android Studio to install it.
  8. When Android Studio start up, click on the update link to update Android SDK Tools and then click the Update Now button.
  9. In the Warning dialog box that appears, click the Attempt to install all packages buttton.
  10. CHECK POINT: In the Install Requested Components dialog box that appears, you will see a progress bar showng the components being installed. Once it is completed, click the Finish button and Android Studio will start with its Welcome screen.

(Optional) Configure Android Studio Settings

There are a few setting that you may want to change to make your environment easier to work in:

  1. Select File > Settings (Windows) or File > Preferences (Mac) and then select Editor > General > Auto Import.
  2. Select all three options.
    NOTE: This will help to AUTOMATICALLY import packages, etc.



  3. Click on the Appearance option and select Show line numbers and show method separators checkboxes and then click the Apply button.
    NOTE: The show method separator will draw a horizontal line to separate methods.
  4. Click on System Settings > Updates and then select both checkboxs to check for updates and select Stable channels for both as well  and then click the Apply button.
    NOTE: Stick to the Stable channels, Once, you are versed with Android Studio, you can switch to another channel like the Canary channel.
  5. Click Editor > General > Code Folding and then DESELECT File header, import and one line methods checkboxes and then click the Apply button.
    NOTE: If you are a beginner developer, you will want to SEE all of the code, once you become proficient, you can check these options.
  6. Click Editor > Color and Fonts > Fonts and then select a scheme.
    NOTE:You cannot change a sheme; however, you can save it as different name and then make changes.
    1. Click the Save As... button and in the Save Color Scheme As dialog box that appears, give the scheme a name and press the OK button.
    2. Change whatever settings you want (e.g., font/font size).
  7. Any other options that you see fit.
  8. Click OK button.

If you want to get the most recent BETA version:

  1. Go to http://tools.android.com/recent.
  2. Click the link for the download page to find links for zips files for each operating systems.
  3. Download the zip file onto the desktop and double-click on it to unzip it.
  4. CHECK POINT: You should see the Android Studio icon for the latest version. Android Studio allows you to have multiple versions side-by-side as long as they have different name.
  5. If you have an older version already installed, you need to rename it in the Application directory.
  6. Drag the new version into the application directory and then double-click to install it.
  7. In the dialog box that appears, click the OK button
  8. In the Complete Installation dialog box that appears, select the third option and then click the OK button.
  9. The first time you start up Android Studio, you will have an opportunity to set your preferences:
    1. In the Install Type diaog box that appears, select Custom and then click the Next button.
    2. In the Setup UI theme dialog box, select your perferred theme (IntelliJ or Darcula) and then click the Next button.
    3. In the SDK Components Setup dialog box that appears, select all of the options and optional if you want to install the SDK in anothe location.
    4. In the Emulator Settings dialog box that appears, select the default if you only have 8G for the Intel HAXM software. However, if you have more memory and you plan to run multiple emulators at the time then increase the amount of memory. As a rule of thumb, you should allocate 1-2G per virtual device.
    5. In the Verify Settings dialog box that appears, click the Next button
  10. CHECK POINT: In the Download Components dialog box that appears, you should see the a progress bar showing that the SDK components files are being downloaded. You can click on the Show Details button to see details. Once the file are downloaded, click the Finish button and you should see the Android Studio Welcome screen.

Install Intel HAXM

Unlike the Window installation, you have to install the HAXM software as a separate process. The Intel HAXM allow you to manage FAST virtual devices on an Intel emulator instead of an ARM-based emulator.

  1. Open Android Studio and on the welcome screen, go to Configure > SDK Manager.
  2. Click on the  SDK Tools tab.
  3. CHECK POINT: Check to see if the Intel x86 Emulator Accelerator (HAXM Installer) checkbox is selected. If so, it is already installed. However, you can use these next steps to update to a newer version.
  4. Go to your Flie Manager (Finder on Mac or Explorer on Windows) and navigate to the SDK directory
    • Mac: Press CTL + SHIFT + G and type ~/Library/Android and press the Go button.
    • Windows: Go to where the SDK directory was installed.
  5. From the Android directory, navigate to sdk/Extras/intel/Hardware...
    • Mac: Look for the installer with a *.dmg extension (e.g, IntelHAXM 6.0.1.dmg)
    • Windoww: Look for the installer with a *.exe extension
  6. Then,
    • Mac: Open the *.dmg file to start the installer and in the dialog box that appears, click the Continue button.
    • Windows: Open the *.exe file and if you see the User Access file, accept it.
  7. If you already have the software installed, you will be notified. However, you can reinstall it by clicking the OK button.
  8. Click the Continue button.
  9. On the screen for the Memory limit, adjust the memory based on the amount of memory you have on your computer
    • If you have 8G, accept the default but you may be only able to run a SINGLE virtual device at a time.
    • If you have more than 8G and you plan to use MULTIPLE virtual devices, you can allocate more memory. As a rule of thumb, you should allocate 1-2G per virtual devices that you intend to use.
  10. Click the Continue button several times and then click the Install button.
  11. Then, enter your username and password and then press the Install Software button.
  12. Click the Close button to install the software.

Go to the SDK monitor and:

  1. Uncheck all options that are checked automatically.
  2. Go to the Extras section and check Intel x86 Emulator Accelerator (HAXM Installer).
  3. Click the Install 1 package... button  and in the dialog that appears click on the Accept License radio button. and then click the Install button.
  4. When you see the message "Done loading packages" in the lower left corner, you can close the SDK Manager dialog and close Android Studio.
  5. Go to the SDK > Extras > Intel folder, and then I'll click the sub-folder Hardware_Accelerated_Extension_Manager
  6. Choose the correct installer for your version of Mac OS 10 to mount the DMG file.
  7. Click the Continue button until you get to the Memory Limit screen.
  8. The default is two gigabytes. accept it and click the Continue button twice and install the software.
  9. CHECK POINT: If prompted for your administrator password, type it in. You should see the HAXM software installed. If you already have it installed, it will be overwritten.

Add Components

The initial installation of Android Studio includes a basic SDK which includes operating system images, compilers and other tools you need to build Android apps.

  1. From the Welcome screen, click the Configure button and then click SDK Manager button. When the SDK Manager opens, you should see several options already selected. If you plan to do development for Android TV or Android Wear, you will need to select those options as well. The latest version of Android is installed when Android Studio is installed.
  2. Check these tools to ensure you have the latest version of each installed:
    1. Android SDK tools
    2. Android platform tools
    3. Android Build tools
    4. Documentation for Android SDK
    5. SDK platform
    6. Samples for SDK
    7. Google API
    8. Google API Intel x86 Atom System Image
    9. Source for Android SDK
    10. Android Support Repository (Java libraries and other resources that are need for new apps)
    11. Google USB Driver (Windows only)
    12. Intel x86 Emulator Accelarator (HAXM installer)

      TIP: Select only the options that you are going to use (e.g., Intel x86 Atom System Image)
      NOTE: A USB driver is not needed for the Mac because it will automatically connect to a physical Android device. System images are virtual device images use with an emulator.


      NOTE: It is recommended that you create a few AVDs with different API levels and hardware configurations so that an app can be tested on different Android OSs. If you have a small monitor, select the Scale display to real size checkbox so that you can set the emulator to  a smaller size. An Android SDK Platform and a ARM System Image is the minimum components for an given Android version.


      NOTE: The SDK Tools tab will show what versions of the build tools are installed. If you attempt to use a project that is based on an OLDER SDK version, you will be prompted to install that copy of the SDK tool.You can have multiple versions of SDK Tools installed to support DIFFERENT projects.

      NOTE: The SDK Update Sites tab list the web sites that Android Studio use. You don't have anything to do in this tab.

  3. Click the Apply button.


  4. In the Confirm Change dialog box that appears, review the list of components that will be added and then click the OK button.
  5. Click the Finish button and then the OK button.
  6. Once the install is complete, close Android SDK Manager and restart it again.