1. Install Java
First, check if you have the Java Developer Kit (JDK) version 6.0 or greater already installed (JRE alone is not sufficient).
To check if you have JDK installed (and which version), open a terminal and type java -version. If JDK is not available or the version is lower than 6, go on to No. 2, below.
Open a Terminal window and type:
Hit Enter. If you have Java 6.0 or greater, continue on to “Set Your JAVA_HOME”
The example below shows Java version 8.0_05 — the version number comes after the “1.”
Install Android Studio
Accept the terms and conditions to start the download. Double-click the downloaded file and follow all the prompts.
Open the downloaded file, and follow the Android Studio Setup Wizard to complete the install.
Install SDK Manager
Download the SDK Manager and an Android SDK
- Download the SDK Manager from: http://developer.android.com/sdk/. Use the link that says "Get the SDK for an existing IDE".
- Execute the downloaded installer.
- Execute this program with administrator rights: SDK Manager.exe
- Download the proposed SDK (if you get errors regarding the SDK Manager couldn't create some folders, remember it should be executed as administrator).
Configure Android Studio to work with the new SDK
- Open Android Studio and in the Quick Start window click "Configure", you will see the SDK Manager greyed out.
- Go to "Project Defaults", then to "Project Structure" and there it will ask for the path where you installed the SDK.
- If you click OK and go back you will see the SDK Manager is no longer greyed out, and now you can start creating projects.
Check for updates
Open Android Studio. If you see a green pop-up alerting you of new updates, click “Check for updates now” on the bottom of the Welcome window, or navigate to it from the Help menu.