I. Android environment Configuration

Source: Internet
Author: User

I chose the development environment recommended by Google, JDK + eclipse + Android SDK + ADT

Recently, Oracle has gradually occupied the share of some development tools. I have used netbeans before, when I was writing j2's, the interface was really beautiful, and the highlight of the same word was definitely a great feature. Of course, the editor is like this now, but it is rare to get out. However, the disadvantage is that a machine with poor configuration is definitely stuck in use. It is not as smooth as the editor in eclipse regardless of the configuration. In addition, it seems that some versions of netbeans sometimes conflict with some versions of JDK, and there are various situations, which may be omitted to 2. However, many enterprises are now using netbeans, so it would be nice to look for a pair of kids shoes.

The following is a tool, which will always change. During configuration, I found that many addresses are different from the previous ones.

JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html

The current version is 7u3.

Eclipse: http://www.eclipse.org/downloads/

The current version is 3.7.1 code-named indigo, which is very important... His Chinese package is also coded, not 3.7... 2

Android SDK: https://developer.android.com/sdk/index.html

Below is the configuration

JDK:

Install the SDK first. If this is not said, follow the prompts and press CMD in the running state, open the console, and tap Java-version. If there is a version prompt, it will be successful.

Right-click my computer-properties-advanced-Environment Variables

Here, you can create personal variables or systems. For individuals, only the current user is valid. For the system, all users are valid. Generally, you can build a system, otherwise, changing the user will not cause any pain, no

Create a new variable named java_home in the system variable; Value: C: \ Program Files \ Java \ jdk1.7.0 _ 03 (JDK installation location)

Create another classpath with the value.; % java_home % \ Lib \ DT. jar; % java_home % \ Lib \ tools. jar;

Actually, it seems that only the location of the Lib folder can be written. Here I have written all three of them.

Find the path and add the value. Remember not to delete it. c: \ Program Files \ Java \ jdk1.7.0 _ 03 \ bin (the bin directory)

After all the operations are completed, you can run CMD and javac in the running environment. The usage prompt is successful.

Eclipse Configuration:

Decompress the package (green now) and start eclipse

Find help-software installation, under the update (too lazy to switch back to English)

A window pops up, and you can enter the following address:

Http://archive.eclipse.org/technology/babel/update-site/R0.9.0/indigo

(This is the Chinese package address prepared by the Babel project team for the [indigo] edition)

Then find the Simplified Chinese package, and check the package, and then click Next + to complete the operation. Check the prompt and go to the simple 1B.

A prompt box is displayed, prompting you to restart.

For the first time, I chose to restart directly. As a result, the restart is complete, and initialization attempts in many places fail... At that time, I had no choice but to try again... This is the attempt to change the application, that is, the third of the three buttons in the prompt box. This time there are several errors, but you don't care about it, and a bunch of Reset attempts are prompted, I clicked OK one by one, and then restarted eclipse. This time there was no attempt to initialize the error ..... I don't know if I'm lucky, or should I apply changes first and then restart... But he prompts that it is a restart... Bytes

Configure the android SDK:

I will decompress the version, not the installation version, and you can freely choose to decompress it to the installation location. Click SDK manager.exe

A prompt window is displayed, asking you to select the desired package. This tool will automatically find the new package.

I chose tools (required for this, no tools for development) and extras (which contains USB drives and Google ads and other components, in general, it has nothing to do with Android development, but it is useful. For example, if you want to put Google ads, you need to use it and development related to USB interfaces ), the other is to select the desired Android API, which one is recommended here, or I will choose 2.2 for the slow startup, and then start the installation, then let's talk nonsense as prompted.

After all the settings are completed, go to my computer-properties-advanced-environment variables, find the path in the system variables, and add it; D: \ Android-SDK-Windows \ tools, it is the location of the tools in the installation directory. It is also the old one. The old ones are all used by other programs. You just lick and add them, so there is a previous one.

Configure ADT:

Like installing a Chinese package, it is also help-install new software.

Then tap the address https://dl-ssl.google.com/android/eclipse

If an error occurs, change HTTPS to HTTP and search again.

Then, check all the packages found and install them.

Install the window in eclipse-preferences, and click android in the pop-up box.

Click Browse to select the SDK installation directory. The component list will appear below, and then the application will be ready.

After creating a new project, you will find that there is an android project, that is, when you can create and install a new project, it will be successful.

 

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.