Android Studio Windows Install for PCs
This tutorial covers installing Google's Android Studio on a Microsoft Windows based PC. It provides advice beyond Google's installation documentation. For further additional background information see the article Setup Android Development Environment in Windows.
Note: Android Studio requires a recent Intel i5, i7 or Xeon PC for the best user experience. 64-bit windows is recommended.
Installing Android Studio for Android App Development
The first install of Android Studio can take some time with lots of downloading and extracting. Android Studio requires the Java Development Kit (JDK) to be installed first so the two main steps are:
- Download and install the JDK.
- Download and run the Android Studio installer for Windows.
Once Android Studio is installed the Android SDK Manager is used to add extra packages to support a wide range of Android development scenarios. Then you may need to install device drivers for any Android devices you want to run Apps on when developing, alternatively use an Android Virtual Device (AVD).
Java for Windows
For full details on setting up Java for Windows see the article Installing Java on Windows. Here's the Java quick start:
- Visit the Java Standard Edition (SE) Downloads page.
- Select the Java JDK download button and follow the instructions. (Accept the license agreement and select the correct Windows installation EXE for your PC, i586 for 32 bit or x64 for 64 bit.)
- Run the Java installer to set up Java on your PC.
Install the Android Studio IDE
The link to the Android Studio installer download is on the Android Developers web site. See the Android Studio download page. The Android Studio install file is very large, over 1GB, a broadband Internet connection is recommended. Android Studio will also download and configure additonal files and the whole process can take some time.
Click the large Download Android Studio For Windows button. Terms and conditions for Studio appear, click the check box agreeing to those T&Cs. Another large Download Android Studio For Windows button becomes enabled. Click the button to download the Android Studio install EXE. The EXE is named android-studio-bundle-x.x-windows.exe, where x.x is the current version number of Studio's internal build. (This may not match Android Studio's displayed version number, e.g. the first release of Android Studio 2.0 has a build number of 143.2739321).
Run the Studio installer file. If you experience any errors see the Possible Problems section at the end of the article. You may need to accept a Windows User Account Control (UAC) warning message. Only accept this message if the EXE came from the Android Developers web site. Downloads from other web sites may be harmful to your PC. Select Yes to accept the UAC warning.
When the Android Studio Setup dialog appears select the Next button on the various set up screens.
The installer will setup the Android Studio IDE, the base Android Software Development Kit (SDK) and an Android emulator (a.k.a Android Virtual Device or AVD).
Click next, then agree to the licenses. Then the Install Locations are shown. On Windows the Android Software Development Kit (SDK) install location default is not the easiest to remember (buried under your Users folder).
It is recommended to change the install location, e.g. to C:\Android\sdk. If you need to install Studio and the SDK onto a disk with more space change the install locations here, as this example shows:
Click next and when the install button is pressed a progress bar is shown while the Studio files are extracted. Use the Show Details button for more information. Once completed click next and then the finish button closes the installer.
When Android Studio starts some more configuration takes place. Allow access through the firewall if prompted. Click Next to progress through the Android Studio Setup Wizard screens.
Note: If the SDK install location was changed when the downloaded installed was run select Custom at the Install Type screen. This allows the SDK location to be set for the Android Studio IDE:
Click Finish and Android Studio will download additional packages. Click the Show Details button if required. You may be prompted to allow a command line instruction to run (related to the configuration of the Intel Hardware Acceleration Execution Manager, HAXM). Allow the command to run. When the download and extraction of the packages has completed click the Finish button. After a short delay the Studio Welcome screen will be shown.
Android Studio Ready To Use
To check every thing is working create a simple project, see Your First Android Java Program - Hello, World!.
When you create the first project you may see a Windows Security Alert for Android Studio and Java, select the Allow Access (or Unblock) button for all alerts. You can go into the Windows Firewall settings via Control Panel to check them if required.
Create an Android Virtual Device (AVD) via the AVD Manager. Use the Tools menu and select Android. Select AVD Manager and use the Create Virtual Device button to create an AVD. See Set Up an Android Virtual Device for App Testing. You can also use a physical Android device configured for USB debugging for testing your App.
To return to the dialog displaying Welcome to Android Studio close the project. Enjoy you Android App development.
Android Studio Updates
When Studio runs it will perform a check for updates. There will be regular updates for the Android SDK.
Most Android SDK updates are best installed using the the Android SDK Manager program. See the next section.
When a project is already open Check for Update can be selected from the Help menu in Studio (or the Configure menu on the welcome screen).
Android SDK Manager Program
The status of the Android SDK can be viewed using the SDK Manager icon on the toolbar or via the Tools then Android menu.
Additional packages and updates for the Android SDK can be done using the Android SDK Manager - SDK Manager.exe. The SDK Manager can be started by clicking the Launch Standalone SDK Manager link in Studio's Android SDK settings dialog. Alternatively run SDK Manager.exe from the Android SDK install folder (on Windows type sdk at the Start screen to locate it).
For more information see the article Keeping the Android SDK Updated.
Alternative Android App Development Options
If you find it difficult to developing in Java, with the Google recommended IDEs for App development, there are other alternatives. See the article List of IDEs for Android App Development. It lists development packages and languages from other organizations, some free and some paid for, some will also require the Android SDK.
Possible Problems Installing Android Studio
Occassionally the Android Studio installer has been known to fail. Usually on older versions of Windows. Here are some rare problems.
Android Studio Setup - JDK Not Found
When clicking Next in the installer it may display an error message. The message starts No Java JVM Installation found… or SE Development Kit (JDK) not found…. Even though the Java installer ran without any issues.
(Test the Java installation by opening a Command Prompt and typing java -version. The installed Java version number will be displayed. See our article Installing Java on Windows (32-Bit or 64 Bit) for an example).
This issue occurs on some Windows PCs and can be resolved by setting a JAVA_HOME Environment Variable:
- Windows 10 - At the start screen (press the Windows key) type env and select Edit the system environment variables.
- Windows 8.1 - Go to the Start screen and type env then select Edit environment variables for your account.
- Other Windows versions - Use Control Panel and select System (in the System and Security category). Select Advanced system settings.
The Advanced tab is selected in the System Properties dialog. Click the Environment Variables button. Under System variables select New. In the New System Variable Dialog enter JAVA_HOME for the Variable name. For Variable path enter the path to the JDK. The path is usually C:\Program Files\Java\jdk1.X.Y_ZZ where X.Y_ZZ varies according to the Java version. Set the value to your Java install location, e.g. ic could be C:\Program Files\Java\jdk1.8.0_72 for a recent Java install. Then close the dialogs:
Missing DLL Error
On some Windows PCs Studio will not start and a message box is displayed.
"studio.exe – Unable To Locate Component This application has failed to start because MSVCR100.dll was not found. Re-installing the application may fix this problem."
Running the Studio installer again will not fix the issue. Instead download and install the Microsoft Visual C++ 2010 SP1 Redistributable Package suitable for you PC. Run the appropriate EXE to install the missing DLLs (note these links do not always load first time, you may need to retry if a not found message is displayed):
- Microsoft Visual C++ 2010 SP1 Redistributable Package for 32-bit PCs
- Microsoft Visual C++ 2010 SP1 Redistributable Package for 64-bit PCs
This error message may also result in a Error launching Android Studio message box:
In this case this error is misleading and is caused by the missing DLLs. (For the JAVA_HOME variable configuration see above.) Installing the missing C++ DLLs with also stop this error occurring.
Error Displayed When Installer Extracts the SDK
You may see an error message starting The following SDK component was not installed, this is because the installer tries to back up a previously installed SDK folder. However, if a first time installation this will not exist.
Pressing Retry should work (otherwise the SDK will need updating separately).
Author:Daniel S. Fowler Published: Updated: