Android Studio tutorial-Android Studio 2.1 installation and configuration, android-android

Source: Internet
Author: User

Android Studio tutorial-Android Studio 2.1 installation and configuration, android-android
1. Download Android Studio

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

Or copy the following URL and use thunder to download it:

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

2. Download and install JDK 8 and set Environment Variables

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

3. Install Android Studio2.1

4. Open SDK Manager.exe and download the corresponding sdk

5. Open AS and configure the relevant path

Here we also need to set the environment variable for the NDK:
NDK_ROOT (new) NDK installation path
PATH (added at the end); % NDK_ROOT %

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

6. Create the first project: HelloWorld

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

The new project Wizard will prompt you to select a layout. Select Blank Activity and click Next. Agree to the default name. They should be as follows:

Use Android Virtual Device Manager

The Android Virtual Device Manager allows you to create an Android Virtual Device (AVDs), and then you can run the simulator on your computer. Simulation and simulation have a very important but subtle difference. Simulation means that the virtual device has only one shape, simulating how the actual physical device operates, but not for a specific operating system. However, for the simulator, your computer sets aside a piece of memory to copy the environment based on the simulator that is simulating the device. Android Studio uses the simulator, which means that the Android Virtual Device Manager starts a sandbox of the Linux kernel and the entire Android stack to simulate the environment based on the Android physical device. Although the simulator provides a more reliable environment than the simulator to test your application, it takes several minutes to start an AVD, depending on the speed of your computer. The good news is that your simulator is still active in the memory and it still responds. However, if you have an Android phone or tablet, we recommend that you use a physical device to test your application instead of AVD. That is to say, we first use the Android Virtual Device Manager to create an AVD.

Click the Android Virtual Device Manager icon.

On the first page of the Android Virtual Device Manager wizard, Click create virtual device. Select Nexus 5X on the next page,

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

Click Next. On the next page, click Finish to verify your AVD settings. Congratulations, you have created a new AVD.

Green run button on the single-host Toolbar

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

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.