DEV Community

loading...

Getting started with Android Development

1-creator
Curious
・4 min read

Android Studio Installation and Setup

System Requirements

Android application development may be performed on any of the following system types:

Windows 7/8/10 (32-bit or 64-bit)
macOS 10.10 or later (Intel based systems only)
Linux systems with version 2.19 or later of GNU C Library (glibc)
Minimum of 3GB of RAM (8GB is preferred)
Approximately 4GB of available disk space
1280 x 800 minimum screen resolution
Enter fullscreen mode Exit fullscreen mode

Downloading the Android Studio Package

Most of the work involved in developing applications for Android will be performed using the Android Studio environment. The content and examples in this article were created based on Android Studio version 4.1.3.

Android Studio is, however, subject to frequent updates to newer versions .

The latest release of Android Studio may be downloaded from the primary download page which can be found at the following URL:

https://developer.android.com/studio/index.html

If this page provides instructions for downloading a newer version of Android Studio it is important to note that there may be some minor differences between this book and the software. A web search for Android Studio 4.1.3 should provide the option to download the older version in the event that these differences become a problem.
Installing Android Studio

Once downloaded, the exact steps to install Android Studio differ depending on the operating system on which the installation is being performed.
Installation on Windows

Locate the downloaded Android Studio installation executable file (named android-studio-ide--windows.exe) in a Windows Explorer window and double-click on it to start the installation process, clicking the Yes button in the User Account Control dialog if it appears.

Alt Text

Figure 1. Set up Android Studio

Once the Android Studio setup wizard appears, work through the various screens to configure the installation to meet your requirements in terms of the file system location into which Android Studio should be installed and whether or not it should be made available to other users of the system. When prompted to select the components to install, make sure that the Android Studio, Android SDK and Android Virtual Device options are all selected.

Alt Text

Figure 2. Install an Android AVD?

Although there are no strict rules on where Android Studio should be installed on the system, the remainder of this article will assume that the installation was performed into C:\Program Files\Android\Android Studio and that the Android SDK packages have been installed into the user’s AppData\Local\Android\sdk sub-folder. Once the options have been configured, click on the Install button to begin the installation process.
Alt Text

Figure 3. The installation location must have at least 500 MB free space

On versions of Windows with a Start menu, the newly installed Android Studio can be launched from the entry added to that menu during the installation. The executable may be pinned to the task bar for easy access by navigating to the Android Studio\bin directory, right-clicking on the executable and selecting the Pin to Taskbar menu option. Note that the executable is provided in 32-bit (studio) and 64-bit (studio64) executable versions. If you are running a 32-bit system be sure to use the studio executable.
Alt Text

Figure 4. Leave the Start Android Studio checkbox checked to run this software

Installation on macOS

Android Studio for macOS is downloaded in the form of a disk image (.dmg) file. Once the android-studio-ide--mac.dmg file has been downloaded, locate it in a Finder window and double-click on it to open it as shown in Figure 2–1:
alt text
To install the package, simply drag the Android Studio icon and drop it onto the Applications folder. The Android Studio package will then be installed into the Applications folder of the system, a process which will typically take a few minutes to complete.

To launch Android Studio, locate the executable in the Applications folder using a Finder window and double-click on it.

For future easier access to the tool, drag the Android Studio icon from the Finder window and drop it onto the dock.

Installation on Linux

Having downloaded the Linux Android Studio package, open a terminal window, change directory to the location where Android Studio is to be installed and execute the following command:

 unzip /<path to package>/android-studio-ide-<version>-linux.zip
Enter fullscreen mode Exit fullscreen mode

Note that the Android Studio bundle will be installed into a sub-directory named android-studio. Assuming, therefore, that the above command was executed in /home/demo, the software packages will be unpacked into /home/demo/android-studio.

To launch Android Studio, open a terminal window, change directory to the android-studio/bin sub-directory and execute the following command:

 ./studio.sh
Enter fullscreen mode Exit fullscreen mode

When running on a 64-bit Linux system, it will be necessary to install some 32-bit support libraries before Android Studio will run. On Ubuntu these libraries can be installed using the following command:

sudo apt-get install libc6:i386 libncurses5:i386                                           libstdc++6:i386 lib32z1 libbz2-1.0:i386
Enter fullscreen mode Exit fullscreen mode

On Red Hat and Fedora based 64-bit systems, use the following command:

  sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
Enter fullscreen mode Exit fullscreen mode

Discussion (0)