Android environment building-android Development Series (original), Android

Source: Internet
Author: User

Android environment building-android Development Series (original), Android

[Personnel oriented]: All Android Developers are determined to start from scratch;
[Tutorial description]: The content of this tutorial must be original, concise, and detailed. The attachment link must be available, up-to-date, and complete;
[Reply description]: The tutorials are unclear. Please reply to the interaction in a timely manner. The landlord will update the post as soon as possible, so as to open source, share, and develop.

1. download the latest JDK version (JDK is the runtime environment)

Official: http://www.oracle.com/technetwor... nloads-2133151.html

TIPS: Official Oracle downloads are slow. Please wait.

Network Disk: http://yunpan.cn/cKFYUzzrfyBIH access password a3ba

TIPS: No speed limit on the network disk. It is the latest and recommended.

2. Install JDK (Note: by default, the following process can be performed only after the installation is complete)

3. Configure the environment and check whether JDK is successfully installed

Choose Control Panel> system> advanced system Settings> environment variables.

Create 3 new system variables (TIPS: We recommend that you create system variables instead of user variables. Do not make a mistake)

Processing the first variable:

Enter "JAVA_HOME" in the "variable name" text box"

Enter the JDK installation path in the "variable value" text box.

(That is, the installation path of step 2, for example, enter C: \ Program Files \ Java \ jdk1.8.0 _ 25)

Processing of the second variable:

View the PATH variable in the "System variables" option Area

If the variable does not exist, create the variable PATH. Otherwise, select the variable and click "edit ".

Add "% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin;" to the start position of the variable value text box ;"

Or directly "% JAVA_HOME % \ bin;", click OK

Processing of the third variable:

View the CLASSPATH variable in the "System variables" option Area

If the variable does not exist, create the CLASSPATH variable. Otherwise, select the variable and click "edit ".

Add ".; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar ;"

Start-run-CMD-enter java-version. If the JDK version is installed successfully

TIPS: if it fails, check the environment variables. The above environment variables are available for test. Do not copy double quotation marks to the variable values.

4. download the latest version of ADK (related to eclipse + sdk running tools, latest sdks. The full version will be updated later. Don't worry)

Attachment introduction:

Two decompressed folders: eclipse, sdk, and sdk manager.exe

Eclipse: development and integration tool. The default tool used in this tutorial

Sdk: Software Development Kit, Software Development Kit, Android Application, online update supported

Attachment address: http://yunpan.cn/cKFY3NBfqhkjS access password 0c7a

TIPS: ADK does not provide official support, because you have a hard time thinking about it. The attachment is the latest official package and supports online updates.

5. Configure ADK

Create a Development Directory manually, for example, create an android folder (one in total) and a sub-folder (five in total) in disk D (as shown below)
TIPS: the details and good habits are very important. It is necessary to create a development folder.

-Android
-Develope
-Workspace
-Sdcard
-Temp
-Doc
-Readme.txt

Copy the eclipse, sdk, and sdk manager.exe files in Step 4 to the develope folder.

Open the develope/eclipsefolder in sequence, and double-click eclipse.exe.

The Select workspace page appears at the first startup. Select the workspace file manually created in step 5.

So far, the basic environment has been set up. The following steps are detailed configuration, such as localization and proxy.

6. Online localization of eclipse

(To ensure compatibility and success rate, try to use it online. It is available for self-test and can be downloaded in Chinese in minutes)

Open the web browser: http://www.try8.cn/forum.php? Mod = viewthread & tid = 361.
TIPS: This step can be omitted for your reference only. The purpose is to let everyone know where the localized file comes from.

Click the Downloads menu on the left side of the page.
TIPS: This step can be omitted for your reference only. The purpose is to let everyone know where the localized file comes from.

Copy download link: http://download.eclipse.org/tech... e-site/R0.12.1/luna
TIPS: This step can be omitted for your reference only. The purpose is to let everyone know where the localized file comes from.

Run eclipse, click the Help menu> Install New Software, and click add. Fill in the following two items in the pop-up interface:

-- Name: enter an English Name as an identifier.

-- Location: http://download.eclipse.org/tech... e-site/R0.12.1/luna

Wait for a moment (the time depends on the network environment of the machine. Generally, if the link is abnormal within 5 minutes, only one line of exception prompt is displayed on the interface)

Select Babel Language Packs in Chinese (Simplified) from the drop-down menu and select accept terms. After the installation is complete, the program prompts you to choose whether to automatically restart and agree to restart.

7. If you have already completed this step and the environment has been configured successfully, you have just started a good show. Stay tuned!

8. The landlord spent a few days exploring and collecting resources. You can configure the resources in an hour.
Yes, this is the power of sharing. Please respect originality. Replying to the post is a virtue. For this reason, the landlord will support online interactive Q &.

Supplement: I would like to thank the netizens for their valuable comments. I have collected and sorted them out, and will continue to improve and supplement them in the future.

(1) download jdk is too slow. What should I do?
A: The online storage download link is provided in step 1. The online storage is fast and stable. We recommend that you download it.

(2) After jdk is downloaded, an error is reported during installation. How can this problem be solved?
A: First, we recommend the default installation path. Before installing the system, we recommend that you use windows update to update all the vulnerability patches. If the system still fails to install the patches, repost the errors.

(3) What should I do if environment verification fails in step 3?
A: First, we recommend that you configure system variables instead of user variables, and then carefully check and reconfigure them. If this problem persists, repost it.

(4) In Step 6, what should I do if Chinese is always failed?
Answer: the reason for the failure of localization. for Tom, we recommend that you use the adk package recommended in this post. Please check whether the downloaded package is complete, in addition, after copying the link, select the correct language for the download list (do not select the correct language if the step has been written). In the end, select yes \ agree by default and agree to accept the option for default installation, after the installation is complete, a crucial small detail is that you will be prompted to restart the program, click agree to automatically restart the pop-up program to be successful.

(5) How long will this tutorial be updated? What is the tutorial mode?
Update frequency: do not repeat the questions. Here, we will repeat the updates in 1-3 days.
Tutorial Mode: This mode only describes facts and does not describe principles. You can follow the steps in this tutorial to ensure that your quick start is not limited to 1 + 1, why is it equal to 2, instead, we will directly tell you that 1 + 1 = 2. That's right.

If you like me, follow me and become a blog master. Haha

Original post

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.