Two steps to build the android Development Environment (2)

Source: Internet
Author: User

If you do not have an Android phone, you can set up an android development environment to experience it first in the android simulator.

If you want to develop an android application, it is necessary to build an android development environment.

Step 2 of building the android Development Environment: configure the SDK and development tool eclipse.

I. SDK installation and configuration

1, login http://developer.android.com/sdk/index.html (the previous site needs to flip the wall, now can go to the HA), enter the SDK, download it.


2. Install the SDK. We recommend that you download the installation package in EXE format because it can check whether the JDK environment on your computer has been set up. Only after the installation is complete can you proceed to the next installation step.

This step should be noted that it cannot be stored in a directory such as c: \ Program Files. Otherwise, an error message will appear when the simulator is run after eclipse is configured. (Because folders such as program files have spaces), we recommend that you install them directly on a disk, such as D :\



3. This SDK is only the tip of the iceberg. All the required APIs need to be downloaded. If all the APIs are installed, the occupied space is 3 GB. You need to run the SDK manager.exe file and select the content to be installed. Of course, you can also choose to install all the content.




4. For SDK configuration, we recommend that you add the paths of the tools and platform-tools folders under the SDK installation directory to the path of the system environment variable. The specific steps are as follows, as mentioned in the previous article. This is because Android apps will be used later in the simulator.

In this case, adding the toolsaddress to the pathpath is required. If you want to install the .apk file in the simulator, such as Mi chat and so on, adding the folder platform-tools address to the path is also required.

5. Check the SDK installation. Go to DoS and run the Android-H command. If the following is input, the installation is successful.


Ii. Eclipse configuration.

1. Download and install eclipse. It doesn't mean that we have to use eclipse tools for development, but because it is free and has powerful functions, we are happy. Http://www.eclipse.org/downloads/, download Eclipse IDE for Java developers. Download the package and decompress it to a place.

Note that running eclipse will allow you to select a workspace. It is recommended that you do not change it as needed. The default value is \ Users \ Administrator \ workspace.



2. Install ADT.

2.1 Open Eclipse IDE and choose "help"-> "install new software" from the menu"

2.2, click Add... button, the pop-up dialog box requires that you enter name and location: Name your own random, location input http://dl-ssl.google.com/android/eclipse (this address comes from the official ADT installation instructions ). As shown in:



2.3. After confirming the return result, select the ADT we just added from the drop-down list after work with. We will see the developer
Tools, expand it, and select them. As shown in. Then install the SDK step by step.


2.4 After completion

Select WINDOW> preferences. In the left-side pane, select Android, Click Browse... on the right, and select the SDK path. The local machine is:

D: \ Android-SDK-Windows click Apply and OK. Configuration complete.



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.