[Android Development Notes] 1. Build a Development Environment

Source: Internet
Author: User
Preface

To improve the competitiveness of the product, we decided to develop the android client, but we were not very familiar with Java and had to start from scratch.

I will record the entire process, including Java learning and Android development methods, in order to train my writing ability, because I can't even write a sentence clearly, second, we also want to clarify our ideas and accelerate product development. Of course, it would be better if you could help.

Statement

This series of articles is not a tutorial, but only for notes. please correct me if you have any mistakes.

Welcome to reprint, reprint Please retain the original source: http://www.cnblogs.com/rayee

Body

Recommended.

This section mainly records the deployment of the development environment:

1. Install JDK (Java Development Kit)

Android software is developed in Java, and Java Development Kits are required.

Official: http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html

After the download, follow the prompts to install the SDK. After the installation, run javac in the command line. If the following prompt is displayed, the JDK is successfully installed. You can perform the next installation.

If the prompt "javac is not an internal or external command or an executable program" is displayed, it indicates that JDK installation is abnormal and the environment variable is not set. You cannot continue to install it later.

For JDK installation configuration, please see: http://hi.baidu.com/sbsgap/blog/item/dda2cd179e61aa1d4b90a73a.html

I use the JDK on the cloud platform, which is very convenient. You can download it without installation or additional configuration.

2. Install the android SDK

Android SDK, nothing to say, official download: http://developer.android.com/sdk/index.html

We recommend that you download the green version. After downloading it, decompress it to any directory and specify the path in IED.

3. Install IDE (integrated development environment)

There are many options for Android development IDE, but most people use eclipse.

Http://www.eclipse.org/downloads/

There are many versions of eclipse that support Java, but after I download and install eclipse classic for the first time, an error occurs when installing ADT. I forgot the specific prompt.

Download and install Eclipse IDE for Java EE developers again.

After installing eclipse, start to install ADT (Android development tools) (ADT is a plug-in developed by Google for eclipse. It binds eclipse and Android SDK together so that eclipse can develop Android programs, if you choose to install the corresponding plug-ins for other IDES ):

Run eclipse and choose help> install new software.

Click the Add button on the right to bring up the Add dialog box. In the Name field, enter "ADT plugin", and in location field:

Https://dl-ssl.google.com/android/eclipse/

Select the added ADT plugin from work with, wait for the load list, and select developer tools in the list box, as shown below:

Click here and wait for the download and installation. Errors may occur during installation, as shown in the following code:

This error occurs after I install it again. The actual situation may be different. I have not encountered any errors during installation in this version of Eclipse.

After installing ADT, You need to configure it. Click Windows> preferences.

Select android on the left side, select the path where the android SDK was decompressed, and click OK.

If there is no accident, the android development environment will be ready. Check the environment and click File> New> Project:

Success!

Next, we will compile a small demo to familiarize ourselves with the development environment.

Note: The operating system I use is Windows 7. other operating systems may be slightly different.

Related Article

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.