Android Development Study notes-environment configuration for Android development

Source: Internet
Author: User
Tags java se

As a five-year-old C # Senior development programmer, although know now began to learn Android development a bit halfway decent taste, but as the saying goes, because the University of Learning Java this language, and Android development is Java as a development language, so I feel I can slightly involved in Android, Do not ask for deep, only to understand, of course, if you can have small, but also I hope.

To learn Android development, the first must be to configure the Android development environment, Android development is not like ASP. NET or Winfrom, MVC, and so on, and then you can be a big line of the C # language-based project development, build an Android development environment, First we need to install the Java development environment.

First, the Java development environment to build

1. First, we need to download and install jdk,:http://www.oracle.com/technetwork/java/javase/downloads/index.html on the website.

  

Installation Interface:

  

  

After the JDK installation is complete, there are two folders in the corresponding installation directory: JDK and JRE

  

The full name of the JDK is the Java SE Development Kit, the Java Development Toolkit, which is the Java runtime Environment, the Java run environment.

After installation let's test if the installation is successful, open cmd input: java-version, the following message appears, indicating that the installation was successful.

  

2. After installing the JDK, you need to configure the environment variables. Right-click Computer-Properties-Advanced system settings-environment variables

  

Create a new system variable, pop up the new system variable box, enter the variable name in Java_home, enter the value of the variable into the JDK installation directory, click OK.

  

Locate the path variable in the system variable, and if it does not exist, enter it at the end of the variable value:%java_home%\bin click OK.

  

Modify or create the classpath in the system variable, the value of the variable is:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Click OK.

  

Open cmd, enter Javac, and the following message appears, indicating that the environment is configured successfully.

  

  

Ii. installation of Eclipse

Eclipse is an IDE (integrated development environment) developed for Java applications and Android. Eclipse does not need to be installed, after the download unzip the package, cut the Eclipse folder to the place where you want to install, open when you set up your working directory. The eclipse installation is not logged.

Third, install the Android SDK (the SDK installation files are downloaded in case of local installation)

With the JDK variable environment configured, Eclipse installed and only Java applications developed, the Java development environment is ready. If you are using eclipse to develop an Android application, you need to download the Android SDK (software development Kit) and install the ADT plugin in Eclipse, which will connect the Eclipse and Android SDK.

Click Window-perferences Pop-up interface: Select Browse directory to select the installation directory where the Android SDK is located, click OK.

  

Third, the installation of ADT (ADT installation files are downloaded in case of local installation), the Android development team specifically for the Eclipse IDE customized a plug-in: Android Development tools (ADT), the Android Developer Kit

Open the Help-install new software pop-up interface as follows, then click Add Pop-up Interface: Name to fill ADT, path to select local download good ADT Jar file, click Next.

  

When installed, you will be asked to restart Eclipse,eclipse and intelligently associate it with the Android SDK in the same directory as the directory location. Open Eclipse to create a new Android project, such as:

  

So we have configured the Android Local development environment, below we can do Android project development, next post I began to learn my first Android Helloword program.

Android Development Study notes-environment configuration for Android development

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.