Android Development Environment Building

Source: Internet
Author: User
Tags java se

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8B/E0/wKiom1hbWXmTEqGDAAErolqbKq8344.jpg "title=" 966386-20160528140328209-595692712.jpg "alt=" Wkiom1hbwxmteqgdaaerolqbkq8344.jpg "/>


Guide:

The first step in learning Android development is to build an Android development environment.


1. Installing the JDK

The JDK (Java SE Development Kit) is the Java Development toolset. SE represents the Standard Edition.

The JRE (Java Runtime Environment) is the Java Runtime environment.

Download the JDK version from the Oracle website according to your computer's operating system and install the JDK. Jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140355038-540106622. PNG "style=" margin:0px;padding:0px;border:0px; "/>

I am using a 64-bit WIN7 system, so download: Jdk-8u92-windows-x64.exe, other systems corresponding to the download. Installation: Jdk-8u92-windows-x64.exe

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140419522-729257372. PNG "style=" margin:0px;padding:0px;border:0px; "/>

After successful installation, the directory structure is:

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140436350-990041154. PNG "style=" margin:0px;padding:0px;border:0px; "/>

2. Configure Environment variables

Environment variables:

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140452616-1756591783. PNG "style=" margin:0px;padding:0px;border:0px; "/>
We need to set up three system variables, namely Java_home,path and classpath.

Java_home

New system variable: java_home, the variable value is the JDK installation path on your computer: C:\Program files\java\jdk1.8.0_92. Once created, you can use%java_home% as the unified Reference path for the JDK installation directory.

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140506350-1098732262. PNG "style=" margin:0px;padding:0px;border:0px; "/>

Path

The Path property already exists, can be edited directly, appended with the variable:;%java_home%\bin;%java_home%\jre\bin.

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140517631-1070645883. PNG "style=" margin:0px;padding:0px;border:0px; "/>
CLASSPATH

Added system variable: CLASSPATH, Variable value is:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar.

Note the variable value string is preceded by a "." Represents the current directory, the purpose of setting up classpath is to tell the Java execution Environment, in which directories you can find the classes or packages that you need to execute the Java program.

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140529084-1446933042. PNG "style=" margin:0px;padding:0px;border:0px; "/>

3. Install Android Studio

Development environment: Android Studio and Eclipse Choice, I believe now everyone will choose android Studio, a lot of advantages.

Android Studio is a brand new Android development environment based on IntelliJ idea. Similar to Eclipse adt,android Studio provides integrated Android development tools for development and commissioning, on the basis of idea, Android Studio offers:

    • Build support based on Gradle

    • Android-specific refactoring and quick fixes

    • Tips tool to capture performance, availability, version compatibility issues

    • Supports Proguard and application signatures

    • Template-based wizards to build common Android app designs and components

    • Powerful layout editor that lets you drag UI controls and preview effects

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140544147-853824676. PNG "style=" margin:0px;padding:0px;border:0px; "/>
Android Studio:https://developer.android.com/studio/index.html#download

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140558866-928593957. PNG "style=" margin:0px;padding:0px;border:0px; "/>
Install the downloaded installation files.

650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140611709-2062086822. PNG "style=" margin:0px;padding:0px;border:0px; "/>
650) this.width=650; "Src=" http://images2015.cnblogs.com/blog/966386/201605/966386-20160528140624006-1956633662. PNG "style=" margin:0px;padding:0px;border:0px; "/>
Step by step installation, success.

Android Development Environment Building

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.