Android Studio Tutorial--android Studio 2.1 Installation and configuration

Source: Internet
Author: User

1. Download Android Studio

Go to official website https://developer.android.com/studio/index.html Download the latest version of Android Studio2.1 (bring your own ladder)

or copy the following URL using Thunderbolt download:

Https://dl.google.com/dl/android/studio/install/2.1.2.0/android-studio-bundle-143.2915827-windows.exe

2. Download and install JDK8 and set environment variables

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

3. Install Android Studio2.1

4. Open the SDK Manager.exe and download the appropriate SDK

5. Open as and configure related paths

Here you also set the environment variables for the NDK:
installation path of the Ndk_root(new) NDK
PATH(end increment) ;%ndk_root%

NDK's: https://developer.android.com/ndk/downloads/index.html

6. New first project: HelloWorld

The Android operating system can run on a variety of platforms, including game consoles, televisions, watches, eyewear, smartphones and tablets. By default, the phone and tablet check box is selected and API-8 is selected as the lowest SDK. Agree to these settings and click Next,

Subsequent new project wizards will prompt you to choose a layout. Select the blank activity and click the Next button. Agree to the default name, and they should be as follows:

Using Android virtual Device Manager

Android Virtual Device Manager allows you to create an Android virtual device (AVDs) and then you can run the emulator on your PC. Simulation and simulation have a very important but subtle difference. Simulation means that the virtual device has only one form factor, simulating how the actual physical device works, but not for a particular operating system. For emulators, however, your computer leaves a piece of memory to replicate the environment on which the emulator is simulating the device. Android Studio uses the emulator, which means that Android virtual Device Manager launches a large sandbox for the Linux kernel and an entire Android stack in order to emulate an Android-based physical device environment. Although the emulator provides a more reliable environment than the emulator to test your application, it can take several minutes to start an AVD, depending on the speed of your computer. The good news is that your emulator is still active in memory and it's still responsive. However, if you have an Android phone or tablet, we recommend using a physical device to test your application instead of using the AVD. In other words, we first create an AVD using the Android virtual Device Manager.

Click the Android Virtual Device Manager icon.

In the first interface of the Android Virtual Device Manager wizard, click the Create a virtual device button. In the next interface select Nexus 5X,

Then click Next. The next interface allows you to select a system image.

Click Next. On the next screen, click the Finish button to verify your AVD settings. Congratulations, you've created a new AVD.

Green Run button on stand-alone toolbar

Make sure the Launch Emulator radio button is selected, and then select Nexus. Click OK and wait a few minutes for the AVD to start. Then you should be able to see the HelloWorld application running on your computer simulator.

Android Studio Tutorial--android Studio 2.1 Installation and configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.