Android development environment built under Windows

Source: Internet
Author: User
Tags android sdk manager

Android is primarily based on the Java language, and only the core and some of the underlying libraries are written in C + +. So the first step in building an Android development environment is to install and configure the Java development environment. After the Java development environment is configured, download the development kit from the Android website and you can use it after extracting it.

First, the Java Development Environment installation

Download the latest JDK from the Java website

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

After the installation, there are two parts: part of the Java Development Toolkit, the JDK, which we develop, and the Java runtime, the JRE, which is used to run Java applications.

Second, the Java Development environment configuration

After the installation of the Java development environment is also configured, mainly to configure some environment variables, otherwise run often will not find something. Configuration method Online There are many, here put my glue over:

1. New System Variables Java_home and CLASSPATH

Variable name: java_home

Variable Value: D:\Program files\java\jdk1.8.0_05

Variable name: CLASSPATH

Variable value:.; %java_home%\lib;

2. Modify the system variable path, add two values

Variable name: Path

Variable value:%java_home%\bin;%java_home%\jre\bin;

Third, install the Android development environment

Download the latest development kit from the Android website

Http://developer.android.com/sdk/index.html

The integration of Eclipse, Android SDK and Android SDK Manager, hundreds of m of a compressed package, very real, the need for tools have, extracted out can be developed. However, because I am mighty, this site often do not go, so either FQ or Baidu search search randomly download a bar.

In addition, the downloaded toolkit is generally integrated with the latest SDK, if you need an older version, you can use the inside of the Android SDK Manager update download, but as the official website, but also often updated.

Iv. Creating an AVD

After unpacking the toolkit, run the eclipse inside and set the WorkSpace to enter the main interface. In the main interface "new", "Android Application Project", in the Pop-up dialog box to fill in the project name, "Next" down, created a new can run Android project. But to run this project requires an Android device, if there is an Android phone is very convenient, the mobile phone developer mode Open, with a USB cable connection, drive no problem, in the new project right click on "Run as", "Android application", If there are no errors, wait a little while to see our program running on the phone. If it doesn't matter if you don't have an Android phone, select "Window", "Android Virtual Device Manager" in the Eclipse menu bar, click "New ..." button in the Pop-up dialog box, fill in the parameters, click "OK" Create a virtual Android device. Select the newly created device, click "Start" to start, the process is very slow and slow to start ... Wait patiently. Once the device is up and running our project, we can run it on the device we created.

Android development environment built under Windows

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.