工欲善其事 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