工欲善其事 its prerequisite--------build Android Platform

Source: Internet
Author: User

工欲善其事 its prerequisite -------- Build Android Platform

1.1 installation JDK

Support for JDK or JRE is required during eclipse development, otherwise it will be an error.

(1) Download jdk (recommended to download to JDK website) [Java Platform (JDK)] (preferably not installed in a directory with spaces) (Downloads)

Figure 1-1 JDK Download

(2) Configure environment variables (This step is important, the process can be referred to the online steps)

java_home: C:\Program files\java\jdk1.8.0_25

CLASSPATH:.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar

Path:;%java_home%\bin;%java_home%\jre\bin;d:\android\androidsdk\

Tools

(3) To this end, the JDK installation is complete, write a HelloWorld test whether the success

In this case, pay special attention to whether the document is formatted as. java (most likely hidden file extensions)

Method: In the organization, click the folder and search options, do not tick the hidden file name option.

1.2 installation Android Eclipse

Open directly to run

1.3 installation ADT

Open the Help in Eclipse, select Install New software, and click Add,name to fill in the location of the Location:adt file. (http://jingyan.baidu.com/article/3aed632e66858770108091bf.html)

1.4 installation SDK

Select Android SDK Manager under window and choose the appropriate tool to install.

1.5 issues you may encounter when connecting to your phone

The connection to ADB are down,and a severe error has occur.

You must restart ADB and Eclipse.

Ensure that

In fact, we may have missed the first error in the Consol newspaper:

DDMS files not found: \ Platform-tools\hprof-conv.exe No discovery

Method: Go to the directory to confirm the existence of hprof-conv.exe, if not, the tools in the file into the Platform-tool.

Note: If eclipse does not generate mainactivity and layout layouts When you create a new Android project, select empt when creating the activity.

工欲善其事 its prerequisite--------build Android platform

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.