High speed built Android development environment Adt-bundle and Hello World

Source: Internet
Author: User
Tags android sdk manager

----Download jdk (Java Dev Kit)
Official Download: http://www.oracle.com/technetwork/java/javase/downloads/index.html




Maybe step:https://docs.oracle.com/javase/8/docs/

View after security
the different and meaning of the JDK and JRE: http://www.pc6.com/infoview/Article_53547.html
1. Jvm-java Virtual machine!

The JVM is a Java virtual machine that we often say is the most central part of the entire Java implementation across platforms, and all Java programs are first compiled into a. class file that runs on the virtual machine. That is, the class does not directly correspond to the machine's operating system, but is indirectly interacting with the operating system by the virtual machine, which interprets the program to run on the local system.
2. Jre-java Runtime environment!

The JRE refers to the Java execution Environment, which is intended for users of Java programs, not developers. JRE like a PC, written WIN32 applications need the operating system to help us execute, written Java program is the same as the JRE talent execution. The JVM is not complete. class file execution. The JVM needs to invoke the required class library lib to interpret the. class. In the JDK installation folder you can find the JRE folder. There are two folders in Bin and Lib. The jvm,lib in the bin is the class library that the JVM works on, and the JVM and the class library together are called the JRE. So after the Java program is compiled into class file. You can package this class file with the JRE and send it to a friend so that your friend can execute the code you hit (the JRE has the Java.exe to execute. Class).
3. Jdk-java Development kit!

JDK is the SDK for Developers (SDK is software Development Kit generally refers to the software development kit.  Can include libraries, compilers, etc.), which provide the Java development environment and the execution environment. There are six directories in the JDK directory: SRC class Library Source code compression package and several other declaration files, in which the actual Java implementation is the following four directories: Bin (the most basic is compiler Javac.exe), include (Java and JVM interaction with the header file), LIB (class library), JRE (Java Execution Environment). Now we can see such a relationship. The JDK includes the JRE. The JRE includes the JVM (note: The bin of the JDK directory, the Lib directory and the bin in the JRE directory, Lib is different, the JDK is used for the development of Java programs. The JRE is a function that can only perform class without compiling.

Installing the JDK is the first way to extract the JDK directly to C drive, then the configuration environment (right-click on "Computer", "Properties", "Advanced system Settings"). "Environment variables", please configure the environment in the top of the environment variables ' XXX user variables ' "xxx refers to the name you give your computer", click "Create" Start configuration, I installed the JDK on the G disk Please install the path of their own installation of the self-configuration thank you. )。 The
configures environment variables. User variables for environment variable->adminstrator, advanced system settings, such as the desktop, computer, right-click Properties (Detailed and own username), new or edited variables (append if already exists) New if not present. When appending, note that the number is separated from the previous one)


variable name: TMP                 variable value:%userprofile%\appdata\local\temp   (please Copy directly) Variable name: Java_home variable Value: C:\Program files\java\jdk1.8.0_25 (do not add ";" in the back) )
Variable name: CLASSPATH variable value:.; %java_home%\bin;
Variable name: PATH variable Value: .; %java_home%\bin; D:\Android\eclipse-jee-juno-R-win32\android-sdk-windows\tools (the environment variables of the SDK are written in advance)

Variable name: java_home
Variable Value: C:\Java\jdk1.7.0_17
Variable name: ANDROID_SDK
Variable Value: C:\Java

Variable name: Path
Variable value:.; %java_home%\bin; C:\Java\adt-bundle-windows-x86\sdk\tools; C:\Java\adt-bundle-windows-x86\sdk\platform-tools
Variable name: CLASSPATH
Variable value:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%java_home%\lib; (Note the previous. Number)


---test environment variables
Execute cmd, enter "Java-version" and "javac" test command respectively to see success or not;

-----------------Download Adt-bundle for Windows

Adt-bundle is an integrated IDE, officially provided by Google Android, which already includes the Eclipse,android SDK and platform tools required by Android. Novices need only adt-bundle to build an Android development environment at a high speed. official:https://developer.android.com/sdk/index.html#download

-----------------Installing Adt-bundle
directly download the downloaded adt-bundle-windows-xxx-xxxxxxxx. zip and unzip it to the location you need to install.
Unzip the Adt-bundle-windows-x86-20140702.zip (the file name may be slightly different due to the version number). There are three parts in the following example:



---------------Install the Android SDK

Execute SDK Manager.exe, SDK Manager is used to download other Android development related components (Eclipse assumes that the ADT plugin is also available from Window > Android SDK Manager) and select the API to download the Android version number.

Open the extracted directory in the SDK Manager.exe (also able to execute Eclipse/eclipse.exe and then open via Windows--Android SDK Manager)






Tick the Android version number of the target phone you want to develop. It's best to hook it all up. Then click on Install package to follow the prompts next. Accept agree to wait for installation (this is a slow process)


Fifth step: Configure the Android AVD (virtual simulator)

Open Eclipse(Eclipse/eclipse.exe), (the eclipse that executes the launch may look a little different, and can be shown by Windows to some of the frequently used forms, toolbars). Then open the AVD Manager from windows->android Virtual Device Manger .

Click Newbutton to create your new AVD, for example, I made a simple note, the fact that you are able to fill out any of your own, click OK.


You configure this AVD to be the default debug actuator for your Android app, and of course you can configure multiple.

------------------Create a Hello World project

Via File, new-> Android Application project, then enter Hello World (project name). Next Finish


execute eclipse, create a new Android application Project, and go through the default. You'll see that you're actively generating two files: One is the interface logic Java class. There is also an XML file that describes the description of the interface. Java class:
interface Design XML file: You can change the changes in this interface.


-------------------from executing Hello World

Direct click on Run Debug (shortcut key F11) can be executed in your configured emulator.

before you do this, you need to set up the Android AVD (Android virtual device).
The AVD is not defined here and a new one is required.
defines the brand of the virtual device. The version number of Android, and the associated hardware configuration.






Copyright notice: This article Bo Master original articles, blogs, without consent may not be reproduced.

High speed built Android development environment Adt-bundle and Hello World

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.