Windows builds Android development environment _android

Source: Internet
Author: User

Tools/raw Materials
JDK
Eclipse
Adt
Installation of JDK and settings for Java environment variables

1. JDK Download Address
JDK Download Address: http://www.oracle.com/technetwork/java/javase/downloads/index.html
JDK (Java Development Kit) is the core of the entire Java, including a series of Java development things, installation needs to configure the environment variables.
2, Java_home
JDK installation path, the environment variable itself does not exist, you need to create, you can use%java_home% as a unified reference path, the value is: The JDK on your computer installation path.

3, PATH
The path attribute already exists and can be edited directly. The role is used to configure the path, simplifying the input of the command, which is:%java_home%\bin.

4, CLASSPATH
The path to use for the Java class at compile time, note that there are two values set here, (.;) Indicates that the JVM first searches the current directory. The value is:.; %java_home%\lib\tools.jar.

5, after the configuration is completed, run the following command via CMD: Java-version,javac If the return information appears, the setting succeeds.

Install Eclipse
1. Eclipse Download Address
Eclipse Download Address: http://www.eclipse.org/downloads/? (choose Eclipse Standard Version).
Eclipse is the IDE developed for Java and Android. Eclipse does not need to be installed, unzip the unpacked package, cut the Eclipse folder to the place you want to install, and set up your working directory when you open it.

Install the Android SDK
1, Android SDK download address
Android SDK Download address: http://developer.android.com/sdk/index.html.
The Andorid SDK provides the Android Management Development Kit tool, which offers the development kits and tools for all levels of Android platforms. Note that we need to download the SDK separately, because we are standalone, not integrated (integrated series tools). (as pictured)

2, run the installation files, and the installation directory under the Tools folder path set into the PATH environment variables.

3, go to the installation directory to run the SDK Manager, the beginning of what platform and tools are not, need to download back. Company intranet words need to use the agent to download.

4, to the Tools-> Options ... Fill in the agent, click Close then there will be a number of platform list, the Android Tools selected to install, in addition, it is recommended to download more than 2.2 of the installation.

Installation Configuration ADT
1. Installation ADT
start Eclipse, click the Help menu-> Install New Software ...?, click? Add ...?, enter Address: http://dl-ssl.google.com/android/eclipse/.

2, select the items to install, all the way next to complete the installation and restart. So the ADT is installed.

3. Configure ADT

Select Window-> Preferences, in the pop-up panel will see the Android settings, fill in the installation of the SDK path, will appear just installed in the SDK platform package, press OK to complete the configuration. At this point, the Android environment is set up and can be developed for Android projects.

Create the first Android project
1, select File-> New-> other-> android-> android application Project.
2, enter the information required for the project
Application name (name of application)
Project name (the name of the project in Eclipse)
Package name (the name of the package that holds the Java class, in essence, is the folder path that is stored, the. Number is the file delimiter, and the Java files we write are placed in the SRC directory of the project, such as the Com.tencent.helloworld representation class on the src/com/ Tencent/helloworld folder)

3, all the way next until finish, our project was created.

4, because the program is running on the simulator, we have not created an emulator, so we need to create one, the completion of the point of closure can be.

5, click the Triangle Run button, and then select the simulator you just created, the program starts running. Tip: Start the simulator will be slower, so when the program to make changes, need to run again, do not close the simulator, directly on the emulator home or return key to exit the app, and then press run, you can run again.

6, the end: Congratulations! Your Android environment has been built successfully.

Related Article

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.