Android Environment Build-Android Development Series Tutorial (original)

Source: Internet
Author: User

"People-oriented": Determined to develop all the people in Android, to truly start from the Zero Foundation;
"Tutorial description": This tutorial in the content of the guarantee original, concise, detailed, in the attachment link to ensure that the availability, the latest, complete;
"Reply Note": The tutorial has not clear place, please timely reply interactive, landlord will be the first time to update the post, I would like to open source, share, and go.

1. Download the latest version of JDK (JDK is running environment)

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

Tip: Oracle Official download speed is slow, please wait patiently

Network disk: Http://yunpan.cn/cKFYUzzrfyBIH access password A3BA

Tips: Unlimited speed of the network, is the latest, recommended

2, install the JDK (small hint: The default can be installed before you can proceed to the following process OH)

3. Configure the environment and detect if the installation JDK is successful

Open Control Panel-system-Advanced system settings-environment variables

Create a new 3 system variable (TIP: Recommend setting up system variables instead of user variables, white don't make a mistake!)

The first variable is processed:

Enter "Java_home" in the "Variable name" text box

Enter the installation path for the JDK in the Variable value text box

(That is, the installation path for step 2, such as input: C:\Program files\java\jdk1.8.0_25)

The second variable handles:

View the path variable in the System Variables options area

If it does not exist, create a new variable PATH, otherwise select the variable and click the Edit button

At the beginning of the Variable Value text box, add "%java_home%\bin;%java_home%\jre\bin;"

or direct "%java_home%\bin;", click the OK button

The third variable handles:

View the CLASSPATH variable in the System Variables options area

If it does not exist, create a new variable classpath, otherwise select the variable and click the Edit button

In the start position of the Variable Value text box, add the.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; "

Start-run-cmd-input java-version, the version number of the installation JDK is installed successfully

Tip: If not successful, check the environment variables, the above environment variables are pro-test available, variable values do not copy double quotation marks

4, download the latest version of ADK (ECLIPSE+SDK Run tool related, the latest SDK, the full version of the follow-up will provide updates, do not worry OH)

Annex Introduction:

Two folders after decompression: Eclipse, SDK, and SDK Manager.exe

Eclipse: Development Integration Tool, the default tool used in this tutorial

Sdk:software Development Kit, Software Development Kit, Android app, Support Online update OH

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

Tip: ADK does not provide the official, because the slow you want to die of heart have, attachment is the official packaging of the latest version, Support Online update OH

5, Configuration ADK

Create a development directory manually, such as creating an Android folder in the D drive (1 total), and a total of 5 subfolders (as shown below)
Tip: Details and good habits are important, so it's necessary to create a development folder.

-android
-develope
-workspace
-sdcard
-temp
-doc
-readme.txt

Copy the Eclipse, SDK, and SDK Manager.exe files from step 4 to the Develope folder

Open the Develope/eclipse folder in turn, double-click Eclipse.exe

The first launch will appear by selecting the workspace interface and selecting the manually created workspace file in 5

To this end, the basic environment has been set up, the following steps are some details of the configuration, such as Chinese, agents and so on

6, Eclipse online processing of Chinese

(To ensure compatibility and success rate, try to use the online bar, self-test available, minutes can download the completion of the Chinese)

Browser Open Web page: http://www.eclipse.org/babel/downloads.php
Tip: This step can be omitted, for reference only, in order to let everyone know where our Chinese documents came from

Click the Downloads menu on the left side of the interface
Tip: This step can be omitted, for reference only, in order to let everyone know where our Chinese documents came from

Copy download link: Http://download.eclipse.org/tech ... e-site/r0.12.1/luna
Tip: This step can be omitted, for reference only, in order to let everyone know where our Chinese documents came from

Run eclipse, then click on the Help menu >install New software, click Add, fill out the following 2 items in the popup screen

--name: A random English name as a mark

--location:http://download.eclipse.org/tech ... E-site/r0.12.1/luna

Wait a moment (time depends on the machine network environment, generally within 5 minutes, when the link is abnormal, the interface displays only one line of abnormal hints)

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




7, if you have come to this step, the environment has been configured successfully, the show has just begun, please look forward to!

8, the landlord spent a few days of the time to explore and collect resources, where everyone spends one hours can be configured.
Yes, this is the power of sharing, please respect the original, replies are a kind of virtue, for this landlord will support online interactive answers.



Add: Thank netizens for their valuable advice, I collected the next, follow-up will continue to improve the supplement.

(1) How slow is the download of the JDK?
Answer: Step 1 has already provided the network disk download link, the network disk is fast stable, the recommendation chooses to download.

(2) JDK download, installation error, various exceptions how to deal with?
Answer: First recommend the default installation path, small white before installation, recommend the use of Windows Update all the vulnerability patches, if the system after the patch is still installed failure, will be wrong reply processing.

(3) In step 3, what about the failure of the environment validation?
Answer: First of all, it is recommended to configure the system variables instead of user variables, and then carefully check the reconfiguration, if always fail reply processing.

(4) Step 6 in the Han Dynasty when the Chinese always failed how to deal with it?
Answer: The reason for the failure of Han, for small white, the first recommended use of this post recommended ADK download package, please check whether the download package is complete, there is a copy link after the download list correctly select the language (the steps have been written on the wrong choice), and finally the default choice of Yes \agree, etc. agree to accept the option default installation, After the installation is complete, there is a very important little detail that will prompt you to restart the program, click on the consent to automatically restart the pop-up program is counted as successful.


(5) How often does this tutorial update, and what is the tutorial mode?
Update frequency: Do not repeat to ask, in here Unified said, general 1-3 days update a post.
Tutorial mode: Just tell the truth, do not say the principle, follow the steps of the tutorial to ensure that you get started quickly, not rigidly tied to why the 2, but directly to tell you 1+1=2, so use right.

Like to focus on me, inspirational to become a blog Park Daniel, haha

Android Environment Build-Android Development Series Tutorial (original)

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.