Android Development Environment Building

Source: Internet
Author: User

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

    1. 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)
    2. When the installation is complete, right click on "My Computer", click "Properties", click "Advanced System Settings", click "Environment Variables",
    3. In system variables, set 3 properties, Java_home,path,classpath (uppercase and lowercase), if existing then click "Edit", do not exist then click "New":
      1. Java_home indicates the JDK installation path, which is the path selected when you just installed F:\Android\java

      2. Add under Path entry?:;%java_home%\bin; %java_home%\jre\bin;
      3. Join in classpath?:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (to Add. Indicates the current path),

    4. "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

    1. 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.
    2. Open Installer_r22.0.1-windows.exe and define the installation folder yourself.
    3. You'll see an interface like this when you're finished installing.
    4. Click on select All and click Install.
    5. Start downloading the file and start the installation, long wait.
    6. After the completion of a log, this error is to download the installation API, the ADB service in the execution, stop failure, no impact.
    7. After the next install AVD (virtual machine, program, through it to debug the program), open the folder under the AvD Manager.exe.
    8. The following image appears when you click New.
    9. 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.

    10. 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

    1. Click Eclipse.exe, to select a workspace (create a store address for the program, and suggest placing it in your own definition folder). When
    2. is open, select  help->Install New SoftWare  appear on the menu bar, such as the following interface:
    3. 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
    4. , click Window->preferences in the menu and select Android to enter for example the following interface.
    5. 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.

    6. Finally we started building our first Android program
      1.   Select Menu file->new->other  Enter for example the following interface, select Android Applicat Ion Object, click Next
      2. to fill in the name, other default
      3. to this step, we can define the app's icon, select OK, then click Next
      4. Select Create a blank program
      5. The main activity name can be defined by itself, I will default
      6. once clicked, the project has been created, and the Welcome tab is turned off to see the item we just joined.
      7. click Run as->>android application. (Note To select the left side helloandroid, otherwise invalid)

      8. Select the first, click OK to
      9. 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

    1. With the install new software under the Help item in the menu bar, click a new dialog box will appear
    2. Click Add, name casually, address for

      Http://download.eclipse.org/technology/babel/update-site/R0.10.1/juno

    3. Locate the Babel Language pack for Eclipse in Chinese (Simplified), and then select the next step and start again after the final completion
    4. After the restart is the Chinese version (in fact, not the number of Chinese)

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.