Required Documents:
Java:
Development of the base environment, the version number is Java SE 7,jdk and JRE both to download
Jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Jre:http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html
Eclipse:
Development tools, support multi-language development, is the development of java,android and other projects of the weapon
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/R/ Eclipse-standard-kepler-r-win32-x86_64.zip
Android SDK Tool:
Android SDK to download software packages, frameworks, tools, and other information needed for development
Http://developer.android.com/sdk/index.html#download
First step: Java Environment Building
- Install the JDK and JRE for installation (it is recommended to place the JDK in its own definition folder, such as: F:\Android\java; During the installation of the JDK, you will be prompted to install the JRE, not the same folder as the JDK)
- When the installation is complete, right click on "My Computer", click "Properties", click "Advanced System Settings", click "Environment Variables",
- In system variables, set 3 properties, Java_home,path,classpath (uppercase and lowercase), if existing then click "Edit", do not exist then click "New":
-
Java_home indicates the JDK installation path, which is the path selected when you just installed F:\Android\java
- Add under Path entry?:;%java_home%\bin; %java_home%\jre\bin;
-
Join in classpath?:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (to Add. Indicates the current path),
- "Start"->; " Execute, type "cmd", type the command "Javac", and the following screen shows that the environment variable is configured successfully. Unsuccessful is character problem, please own Baidu.
Step two: Eclipse and Android SDK tool installation
- Eclipse installation is the compression package decompression to the current folder can be, after the decompression can be executed directly, assuming that the error message and the content is a Java Runtime environment (JRE) or Java development Kit (JDK) Must is available in the order to run EC, and so on, when the information is not configured for the Java environment, please check the first step.
- Open Installer_r22.0.1-windows.exe and define the installation folder yourself.
- You'll see an interface like this when you're finished installing.
- Click on select All and click Install.
- Start downloading the file and start the installation, long wait.
- After the completion of a log, this error is to download the installation API, the ADB service in the execution, stop failure, no impact.
- After the next install AVD (virtual machine, program, through it to debug the program), open the folder under the AvD Manager.exe.
- The following image appears when you click New.
-
The specific configuration of their own choice, completed after the click OK will fill in the information in the form of a dialog box to confirm.
- Click Start to start executing the virtual machine, and the first time the virtual machine executes is somewhat slow.
Step three: Start your first Android app
- Click Eclipse.exe, to select a workspace (create a store address for the program, and suggest placing it in your own definition folder). When
- is open, select help->Install New SoftWare appear on the menu bar, such as the following interface:
- Click Add, the dialog box appears, the name is written, the address is http://dl-ssl.google.com/android/eclipse/ , click OK to appear, then select all the time to continue next, the last step to choose Allow after click Finsh to start the installation, A warning is ignored during installation and after the installation is restarted, after you restart Eclipse
- , click Window->preferences in the menu and select Android to enter for example the following interface.
-
SDK address Select the place where we installed the SDK tool, the installed version number set will appear, select click Apply, then click OK to complete the version number selection.
- Finally we started building our first Android program
- Select Menu file->new->other Enter for example the following interface, select Android Applicat Ion Object, click Next
- to fill in the name, other default
- to this step, we can define the app's icon, select OK, then click Next
- Select Create a blank program
- The main activity name can be defined by itself, I will default
- once clicked, the project has been created, and the Welcome tab is turned off to see the item we just joined.
-
click Run as->>android application. (Note To select the left side helloandroid, otherwise invalid)
- Select the first, click OK to
- start your Android road
Appendix: Eclipse Localization
This tutorial uses the Eclipse 4.3 version number, the online has a Chinese-language tutorial, reproduced in: http://blog.csdn.net/jhonoldman/article/details/9242451
- With the install new software under the Help item in the menu bar, click a new dialog box will appear
- Click Add, name casually, address for
Http://download.eclipse.org/technology/babel/update-site/R0.10.1/juno
- Locate the Babel Language pack for Eclipse in Chinese (Simplified), and then select the next step and start again after the final completion
- After the restart is the Chinese version (in fact, not the number of Chinese)