Get started with Android Studio

Install and Set up your First Project

 

Android Studio is Google’s officially supported IDE for developing Android apps. Based on IntelliJ IDEA, Android Studio is freely available under Apache License 2.0. The most recent stable version, 2.1.1, includes the following features:

  • A unified environment where you can develop for all Android devices.
  • Support for building Android TV apps and Android Wear apps.
  • Template-based wizards to create common Android designs and components.
  • A rich layout editor that lets users drag-and-drop user interface components, and that offers an option to preview layouts on multiple screen configurations.
  • Android-specific refactoring and quick fixes.
  • Gradle-based build support.
  • Lint tools to catch performance, usability, version compatibility, and other problems.
  • ProGuard integration and app-signing capabilities.
  • A fast and feature-rich emulator.
  • Instant Runto push changes to your running app without building a new APK (Application PacKage Zip file).
  • Built-in support for Google Cloud Platform, enabling integration with Google Cloud Messaging and App Engine.
  • C++ and NDK support.
  • Plugin architecture for extending Android Studio via plugins.

 

Download Android Studio

Google provides Android Studio for the Windows, Mac OS X, and Linux platforms. You can download this software from the Android Studio homepage. (You’ll also find the traditional SDKs, with Android Studio’s command-line tools, available from the Downloads page.) Before downloading Android Studio, make sure your platform meets one of the following requirements:

Windows OS

  • Microsoft Windows 7/8/10 (32-bit or 64-bit)
  • 2 GB RAM minimum, 8 GB RAM recommended
  • 2 GB of available disk space minimum, 4 GB Recommended (500 MB for IDE + 1.5 GB for Android SDK and emulator system image)
  • 1280 x 800 minimum screen resolution
  • JDK 8
  • For accelerated emulator: 64-bit operating system and Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality

 

Installing Android Studio on 64-bit Windows 8.1

I launched android-studio-bundle-143.2821654-windows.exe to start the installation process. The installer responded by presenting the Android Studio Setup dialog box shown in Figure 1.

Figure 1. Set up Android Studio

pic_1

Clicking Next took me to the following dialog box, which gives you the option to decline installing the Android SDK (included with the installer) and an Android Virtual Device (AVD).

pic_2

Figure 2. Do you want to install the Android SDK and AVD?

I chose to keep the default settings. After clicking Next, you’ll be taken to the license agreement dialog box. Accept the license to continue the installation.

pic_3

Figure 3. Accept the license agreement to continue installation

The next dialog box invites you to change the installation locations for Android Studio and the Android SDK.

pic_4

Figure 4. Set the Android Studio and Android SDK installation locations

Change the location or accept the default locations and click Next.

The installer defaults to creating a shortcut for launching this program, or you can choose to decline. I recommend that you create the shortcut, then click the Install button to begin installation.

pic_5

Figure 5. Create a new shortcut for Android Studio

The resulting dialog box shows the progress of installing Android Studio and the Android SDK. Clicking the Show Details button will let you view detailed information about the installation progress. The dialog box will inform you when installation has finished. When you click Next, you should see the following:

pic_6

Figure 6. Leave the Start Android Studio check box checked to run this software

To complete your installation, leave the Start Android Studio box checked and click Finish. 

Running Android Studio

Android Studio presents a splash screen when it starts running:

pic_7

Figure 7. Android Studio’s start screen

On your first run, you’ll be asked to respond to several configuration-oriented dialog boxes. The first dialog box focuses on importing settings from any previously installed version of Android Studio.

pic_8

Figure 8. Import settings

If you’re like me, and don’t have a previously installed version, you can just keep the default setting and click OK. Android Studio will respond with a slightly enhanced version of the splash screen, followed by the Android Studio Setup Wizard dialog box:

pic_9

Figure 9. Validate your Android SDK and development environment setup

 

When you click Next, the setup wizard invites you to select an installation type for your SDK components. For now I recommend you keep the default standard setting.

pic_10

Figure 10. Choose an installation type

Click Next and verify your settings, then click Finish to continue.

pic_11

Figure 11. Review settings

The wizard will download and unzip various components. Click Show Details if you want to see more information about the archives being downloaded and their contents.

pic_12

Figure 12. The wizard downloads and unzips Android Studio components

If your computer isn’t Intel based, you might get an unpleasant surprise after the components have completely downloaded and unzipped:

pic_13

Figure 13. Intel-based hardware acceleration is unavailable

Your options are to either put up with the slow emulator or use an Android device to speed up development. I’ll discuss the latter option later in the tutorial.

Finally, click Finish to complete the wizard. You should see the Welcome to Android Studio dialog box:

pic_14

Figure 14. Welcome to Android Studio

You’ll use this dialog to start up a new Android Studio project, work with an existing project, and more. You can access it anytime by double-clicking the Android Studio shortcut on your desktop.

 

 

 

Author: androidsatya

Passionate Android Learner...

Leave a comment