Installing Android Studio
Before starting with the development of Android applications, it is necessary to configure the platform to be used for this purpose. This aspect involves a number of steps including the installation of the Java Development Kit (JDK) and the Android Studio development environment, which in turn includes the Android Software Development Kit (SDK).
The Software Development Kit (or, more briefly, SDK ) was developed using the Java programming language and Android applications are also developed using this language. So the first component to install on our system is the Java Development Kit (or JDK ).
So let’s download the JDK from the Oracle site to this page.
Obviously we download the latest version compatible with our operating system. Once the download is complete we start the executable file and follow the simple installation instructions:
Once the JDK installation is complete, the next step is to download the IDE Android Studio available on this page.
We start the download and once finished we click on the corresponding executable file:
During the installation the classic screens appear which, among other things, allow us to set the installation path of Android Studio and its SDK:
We leave the default options for all the other items and continue until the end of the installation.
When you start Android Studio for the first time, a dialog box appears showing the options to import the settings from a previous version of Android Studio. So, if you have settings to import, select the appropriate options, otherwise indicate that you do not want to import any settings and proceed by clicking the OK button.
After a few seconds of loading (and in some cases additional downloads), the Android Studio welcome window appears.
The last step in the installation phase of the development environment is to check which Android packages are installed on our system and eventually install the missing ones. To do this, click on the Configure item in the welcome window and then select the SDK Manager option.
In the window that opens, click on the Launch Standalone SDK Manager at the bottom and this will display the Android SDK Manager.
Inside the SDK Manager make sure the following packages are installed.
- Tools -> Android SDK Tools
- Tools -> Android SDK Platform-tools
- Tools -> Android SDK Build-tools
- SDK Platform (of various versions) -> SDK Platform
- SDK Platform (of various versions) -> ARM EABI v7a System Image
- Extras -> Android Support Repository
- Extras -> Android Support Library
- Extras -> Google Repository
- Extras -> Google USB Driver (Required on Windows systems only)
- Extras -> Intel x86 Emulator Accelerator (HAXM installer)
If some of these are not installed, just check the checkbox to the left of the package and click on the Install packages button. After accepting the license conditions the installation of the selected packages will start.
Obviously, as we will see, it is possible to install the packages also at a later stage, so for the moment I advise you not to install them all but only those of the latest versions (from 5 onwards).
We are sorry that this lesson was not useful for you!
Let us improve this lesson!
Tell us how we can improve this lesson?