Android Environment Setup

Source: Internet
Author: User
Tags android sdk manager

Recently in the course design, so always have a bit of harvest, today first thank the environment to build. I am really on my own Windows , so that is windows , next time you have the opportunity to do Unix it.

I think the main thing is three parts, one Java environment , one is the Android Environment, one is the Eclipse and the ADT plugin.

Java Environment setup:

JDK Download Installation:

As we all know, first download jdk:http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

Then he is an EXE to order the installation is good, because I do not like to put the software on the C Drive, so my Java installation path is D Drive. Once installed, open the cmd command line and point to Java -version, which is just as good as not an error.

Figure A

After that, the environment variable is set up: Right-click My Computer - Properties - Advanced system Settings - environment variables, with system variables and user variables, the system variables are modified on this side.

Configuration java_home:

To create a new system variable java_home, the path selects the installation path of the SDK on your computer. It is recommended to open My computer, to enter the SDK installation path from the address bar to copy, you can hit the wrong time.

That's what I'm saying.

Figure II

Configuration CLASSPATH:

As in the previous step, this time configuring the paths for Lib.dt and Tools.jar in the JDK:

.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar

As if the path previously configured for the JDK is java_home so can be directly configured from here, it is also more convenient, I think if you are the direct path of your own configuration, it is also possible.

Might

to configure the bin path for the jdk and JRE:

Add both paths to the path of the system variable so that some services can be started from the command line. It is also recommended that you enter the appropriate path from the file browser and then copy the path from the address bar to path , where you should be reminded that the different paths in the path need to be separated. The same with java_home shortcut = =

%java_home%\bin;%java_home%\jre\bin;

This is my own configuration of the path, not with the shortcut = =, but the effect is the same.

So far, theJava Environment has been built.

installation configuration for Android SDK

I want to find Android on the official website a few days ago , but that official website (developer.android.com/sdk/index.html) seems to give the wall, but not FQ still found a seemingly official website of things, http://developers.androidcn.com/sdk/index.html, this ghost site, also may because I do not know English fucking find a half day Leng can't find the SDK download link, I'm going to your mother, a b. Oneself also in the library, the speed is not good on the FQ, directly on the third party website downloaded a, but still full of reliable.

Then install Oh, I was also installed on the D -drive.

That way. To configure the environment variables, Configure the tools and Platform-tools folders under the Android SDK directory to the system's Path variable, respectively. Specifically do not say, their small paste copy under the good.

installation configuration for Eclipse and ADT plugins:

Eclipse

About Eclipse I would like to say no more, green software. Official website http://eclipse.org/ Perennial open, will not be wall. It is the most common one to download yourself:

After downloading directly to any directory and then you can open the use, this green software I still pretty good.

ADT Download and configuration

ADT This ghost thing I also downloaded in the third party, the previous developer website seems to be 0.9.7 or how much, down simply can not be used, the version is too low, so still want to download new ADT , The result after the download is a jar file.

Then open Eclipse,help-install new software

Name to write a random name, the following is your own download of the ADT plugin seat. Then the point is set.

There is a way to say that, the following type http://dl-ssl.goolge.com/android/eclipse, after the following will be brushed out a variety of plug-ins, just need to install the good, after a reboot. But I am not so fortunate, do not know is because of the wall reason or how, I came directly to the local.

ADT Configuration:Windows -preference, Select your Android SDK installation path in the SDK location, Click Apply, OK.

Then select Java-compiler, check your compiler version, my default is 1.7, my highest is 1.8, but after 1.8 He will say I The JRE version is 1.7...

After configuration, select Java in the upper -right corner of Eclipse

Then there will be two icons to manage Android, one for the SDK Manager and one for the virtual Machine Manager.

Then first go to Android SDK manager

The entry is a lot of packages for you to download, my recommended configuration is this:

Tools:

These three packages should be necessary to download well.

Then select an API to download the following package, I choose the latest, sometimes the latest is not necessarily the best, so I suggest that the choice is not too new and not too long, this time must download all, or some things back to use when there is no.

So I have downloaded something else later:

So now that the Android SDK manager has finished downloading, let's look at virtual Device Manager .

Of course, all three of these are created by me and not at first, so let's create one now.

Previously there was an arm * image in the SDK manager , which should actually be the system image file. If you haven't downloaded it before, you might not be able to create a virtual machine at this point.

So after the creation is started, or from virtual Device Manager Click Start to start, the first boot time is particularly long (for my junk computer), so say a cup of tea to rest.

Then the relevant environment has been better, you can create a helloworld reward yourself. file-new-android-android Application project Click Next,

Choose a name yourself, called HelloWorld Bar, the following package can choose the default, you can also go to take a name. The others will choose the default, all the way next-next, until the finish is good.

Click the green Run button, there will be a run configuration, and then enter it.

From the task browser on the left, select the HelloWorld you just created, target the name of the virtual machine You just created, click Apply, then run.

So the environment even if the good, is not a little happiness ?

Android Environment Setup

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.