Android Study Notes 01: Development Environment setup

Source: Internet
Author: User

Recently, I started to learn about Android development. As a result, I encountered a lot of problems when setting up the development environment. because I had to go to work during the day, I had to come back at night and try again, it took nearly a week to build the Android development environment. The following describes the general steps for setting up the Android development environment, and describes some problems and solutions I encountered during the setup process.

1. JDK Installation

JDK installation is relatively simple. You can install JDK as instructed step by step. The JDK version I use is JDK1.7.0 _ 01.

# Note: After the installation is complete, you need to add the address of the JDK installation directory to the environment variables of the system. The detailed steps for adding are described on the Internet, so we will not complain here.

After JDK is installed, you can check whether the installation is successful using the following methods. Open the cmd window and enter java-version to view the JDK version. The installation is successful if a screen similar to 1 is displayed.

 

Figure 1 JDK version information

2. Install Eclipse

Eclipse installation is also very simple. You can use it directly after downloading it and decompressing it.

# Note 1: The Eclipse version to be downloaded is Eclipse IDE for java EE Developers (select 32-bit or 64-bit based on your system ).

# Note 2: You must first download and install JDK; otherwise, Eclipse cannot run.

3. ADT Installation

The ADT must correspond to the SDK version. Otherwise, many problems may occur. It takes a long time for me. After downloading the SDK4.0 upgradeable version and upgrading it to SDK20.0, my ADT version is unavailable.

Therefore, we recommend that you directly download and use the latest ADT version, so that it can be compatible with the SDK (because the SDK will be updated frequently, the old version of ADT does not support some features of the new SDK ).

The ADT version I used is adt00000.3. After the download is complete, decompress the package. My storage path is D:/androidadt00000.3.

Run Eclipse, select "Help" on the menu bar, and then select "Install New Software ". In the "Install" dialog box that appears, click "Add". The image 2 is displayed.

 

Figure 2 ADT Installation

In the "Add Repository" dialog box shown in figure 2, select "local", select the storage path "D:/androidadt00000.3" for adt00000.3, and click "Next" to start the installation.

# Note 1: When the "Security Warning" dialog box is displayed during installation, select "OK.

# Note 2: When the "Software Updates" dialog box is displayed during installation, select "Restart Now" to Restart Eclipse.

After you restart Eclipse, the installation of ADT is complete.

4. SDK Installation

I personally think that SDK installation is the most troublesome and the most problematic.

I am using the SDK4.0 version that can be upgraded. the SDK of this version does not have a fixed Android package. It is convenient to upgrade and download any Android package we want to use.

After the download is complete, decompress the package. My storage path is D:/AndroidSDK4.0.

Go to the file path, find the "SDK manager" of the robot icon, and double-click to run it. Set Proxy Settings in 3.

 

Figure 3 SDK Installation

After the configuration is complete, if the proxy server cannot be connected, there is no way to go over the wall? I won't teach you anymore, you know ). I encountered this situation ....

After running the wall flip software, you will be pleasantly surprised to find that you can now connect to the server. But don't be happy too early. If the image shown in Figure 4 appears after the SDK is updated, instead of the Android package, you have to spend some time.

 

Figure 4 SDK Installation

Unfortunately, how can I solve this problem? Select "Tools", do not select anything else, and then click "install 2 packages. Wait. An error message will be displayed. Select "NO ". Go to the path where your SDK is stored, find the "temp" folder, decompress the compressed package, and a "tools" folder appears. Copy the folder, put it outside the "temp" folder and overwrite the "tools" folder outside the original "temp" folder.

Then, select "Tools" again. Do not select any other options, and click "install 2 packages. After the SDK is updated, it will be upgraded to version 20.0. As shown in figure 5, the optional Android package has been updated. You can download the required SDK.

 

Figure 5 SDK Installation

Now, even if the Android development environment is ready, you can perform related development activities in Eclipse.

 

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.