Build an Android installation environment

Source: Internet
Author: User

Recently, due to project requirements, I began to learn about android development. It is much better to use android machines to experience the experience than that of mobile phones, if you don't learn it, you have to be hungry.

Like Learning vc, building a development environment is the most basic thing. Then, writing a hello world to run a simulator will go to android.

To build an android development environment, four files are required:

(1) jdk-required for java program development;

(2) Eclipse-code compilation and debugging tool.

(3) Android SDK-android development kit, including various libraries, controls, and APIs open to google;

(4) plug-ins developed by ADT-google, integrated into eclipse

The corresponding is the http://java.sun.com; www.eclipse.org; http://developer.android.com/sdk/index.html?http://dl-ssl.google.com/android/eclipse /;

We recommend that you download the latest version. After the download, start the installation.

 

I. jdk Installation

Run the installer directly. Environment configuration change. "My Computer" right-click -- "property" -- "advanced" -- "system variable" to find the variable named path. If no, create a new one, add the bin folder path of the JDK installation directory to the path value, and the path in the path is separated by semicolons. Find the "CLASSPATH" variable and create a new one if no one exists. Run lib in the jdk installation directory, copy the demo path to "value. Click OK.

Test whether the installation is successful. Click "start"> "run", enter "cmd", and enter "java-version" in command line mode. if the version information is displayed, the installation is successful.

 

Ii. eclipse

This is the green version and can be used for download. I will not talk about it much. I will mainly introduce how to develop it in Chinese.

1) Open the downloaded file, run eclipse, and select "SoftWare Update..." in "Help... "to open the" Software Updates and Add-ons "dialog box, click" avaliable Software "on the tab, and then click" Add site... ", enter" http://download.eclipse.org/policy/babel/update-site/ganymede.pdf "in the Location input box, and click" OK.

2) in this way, the download page is displayed. In the tree control on the left side of the test, you find that one more item is the one you just entered. Check it and then download it, wait.

3) if the network speed is fast, a message of various language versions will appear immediately. Of course, select "simplified chinese" and click "Install .. "Begin to install the Chinese version, the installation is complete, close eclipse, and then restart, this work is complete. If you do not display Chinese characters after the restart, enter eclipse.exe;-nl zh_CN in the command line to restart eclipse.

 

3. Install the android sdk

Decompress the downloaded sdk package and run sdk setup.exe. If you encounter an error such as "fail to Fetch URL...", select "settings" on the left side, select "force https: //...", and save and confirm.

Click "available Packages" on the left to view the versions of various android sdks. You can select the desired version to install. However, we recommend that you install all versions to facilitate future development. Select, click install selected, and then click accpet all and install accepted to start downloading. Wait.

The configuration procedure is the same as installing jdk. In "my computer" -- "attribute" -- "advanced" -- environment variable, in the system variable, add the Path of the tools folder in the adk installation directory to the value of the Path variable. Be sure to use the absolute Path, as is jdk.

 

4. install and configure ADT

Start eclipse, select software update... from the Help menu, select available software, click add site... on the right, and enter hhtps: // dl-ssl.google.com/android/eclipse/

You can follow the prompts in the subsequent steps.

Configuration, select the "windows" menu on the eclipse interface, select "preferences"-android, click "browse", select the installation path of the android sdk, and click "OK. This is done.

 

This completes the development environment. The next article will introduce how to create a simulator and develop a hello world Program.

 

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.