Android Development-the environment of the building (graphic detailed) _android

Source: Internet
Author: User

The tools available for Android development include Eclipse and Android studio, both of which have their own advantages and disadvantages. Studio is Google's launch of a development tool, and we all know that Android is Google, so it would be a little better than eclipse to recommend the development of the use, but everyone knows that Google is intercepted in the country that is not allowed to go to the official website to download studio. At the beginning of our study, we recommend that you use Eclipse, which is developed in many enterprises in China or in eclipse. But after learning to the back, we have to master the development of studio. So today I'm going to say a little bit about how to use Eclipse to build our Android development environment.

One, JDK (no installation)

is the environment in which the Java virtual machine is running

Java students have been configured before the JDK, then for the first contact will need to download after the configuration. JDK Download Address: http://www.jb51.net/softs/75615.html

When we're done, unzip it and put it where you want it.

That's when we need to configure the environment variables.

1, right button My Computer--> Properties--> advanced system settings--> environment variables

The following figure:

2, copy you extract the JDK directory, I am in: D:\Java\jdk1.8.0_91, and then click the new--> input variable name "java_home"--> input variable value (that is, you extract the JDK directory)

Java_home=d:\java\jdk1.8.0_91. The following figure:

3. Configure CLASSPATH variables

Classpath=.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;%java_home%\jre\lib\rt.jar

4. Configure the PATH variable

Path=d:\java\jdk1.8.0_91\bin;

Path is the original, so we need to select the path variable--> edit--> new. As shown in figure:

5, check

Random Directory Run Java-version

At this time our JDK is configured!


Second, run Eclipse ADT (no installation)

Eclipse Download Address: http://www.jb51.net/zt/eclipse.html

After the download, extract to the directory you want (note: It is best not to have Chinese)

The next step is to configure the environment variables.

1. Configure an environment variable

Android_home=d:\java\adt-bundle-windows-x86_64-20140702\sdk

2, this time need to open the SDK to download the required version

As shown in figure:

I have already downloaded it, so I don't need to download it again.

3, direct Operation Eclipse.exe

Third, download the hippocampus simulator

The eclipse ADT itself has a self-contained emulator, as shown in the diagram to open its own emulator:

This time see not yet then we click Create to create a

Here to fill out their own AVD, device, target, CPU, skin and other information click OK to complete the creation

Now you can see the AVD we just created, select it and click Start

Click Launch

So here's our Eclipse ADT's own simulator.

But!!!!!!!!!!!

We can come from the belt is very cotton, so here we recommend the use of the hippocampus simulator, this speed can be said to bring several times, it is not exaggerated! and more useful.

Hippocampus simulator Download Address: http://www.jb51.net/softs/244296.html

Download good after the installation, installation is very simple, is the general software installation, so here is not said Ha, after all, we are so smart!

After the installation, we can start the hippocampus simulator.

This time we need to see if you've detected the DDMS. Activate the hippocampus simulator.

If it's been detected that long enough to run the Android program we wrote,

Of course, the hippocampus simulator only with the new Android4.2 version, which is a flaw in it.

If you think the hippocampus is not good, you can also use the night God simulator, this is a very good simulator, here is not explained in detail ...

Iv. Summary

1. JDK and Eclipse ADT are not choices, so there is no way to change them. Even with studio is the need for these configuration steps, in the future will be a simple explanation with you.

2, for us to run the program AVD we can use its own simulator, but it is very card. So we recommend that you use the hippocampus simulator or night God simulator, very quickly, and the interface is also more beautiful

3. It's best for both Eclipse and studio to use, because some businesses now use Eclipse as well as studio, but one thing to be aware of is that the code edited by the two editor tools is incompatible with each other. That means that the code in the eclipse edit cannot be run in studio, and the code edited in studio cannot be run in Eclipse, which tool you need to see the boss's request.

4, later I will continue to gradually update the Android development for some time, the most basic show out, but also in order to facilitate their own view. Hope you support, thank you!

Original link: http://www.cnblogs.com/xiao-chuan/p/6066227.html

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.