JDK Eclipse SDK Download installation and configuration tutorial

Source: Internet
Author: User
Tags install window windows x64 windows x86

Original Address 49870587

The freshest and most detailed Android SDK download installation and configuration tutorial

Recent Neo burst nerves, want to learn some computer vision, machine learning algorithms are put on mobile devices to run, because mobile development is the general trend, I hope that through such a process of practice, to find some new inspiration (it is not to make money ...) , I also have some ideas at the moment, and then I hope to be able to do computer vision, machine learning, entrepreneurship, if you have like-minded friends can communicate together (via email:[email protected]).

Since you want to do computer vision Mobile development, then it is necessary to consider whether it is iOS or Android. And of course there are winphone. Always want to do iOS development, helpless Ah, with the iphone, ipad, is no imac. Poor cock silk a ... So you can only continue the way, "resolutely" choose android. Said I was also a long time to contact with the development of Android, about five or six years ago, 2010 years, then in the school of a technical team to do the development of the Android, we have a few students together wrote a software, but also took a mobile million youth Entrepreneurship competition Campus Group second. But then I do not want to do this, may feel in the romantic, beautiful, such as clouds, colorful university inside to do a code as a girlfriend of the cock Silk Engineering Technology House does not meet in the next tear, indulge unruly, riding Pentium character bar ... (Oh da ... And I think, we betrayed more than 10 years of body and soul to the primary and secondary education, bided Cram School, only in exchange for this to 985 before the opportunity of the ten colleges, but also here to continue to sell their soul when the four yards of the farm is not worth it, so, why did we not go directly to Beida Jade Bird on the end. I have to work hard at this university.

A bunch of nonsense, the reality is, after I indulge in four years, still can only come back quietly to do a yard farming ... (In that case, why did you have to go blind for four years?) Want to want to be at that time to go to college and not to blindly toss, quietly do a engineering cock silk, now may be long ago exo, marry Formica beauty. Crying faint in the toilet. )。

To get to the point, recently in the configuration of the Android development environment, encountered a big problem, that is, Google's Android website incredibly successful by my celestial to the wall dropped, has not figured out what this is for. The difficulty of my celestial plan to make a mobile phone system, so we do not let the use of Android? Very depressed, think of when I developed Android, the site is still on the ground to go. The world is getting really fast. Even more heinous, to go online to see a lot of Android development environment of the tutorial, incredibly also blatantly called us to the Android official website to download the SDK ... Trouble these bloggers, do not so thought highly we these small white good, we are law-abiding never fq good citizens (anyway, I believe it.) )。 A closer look, found that these blog post tutorials are mostly older, what is 2012/13 years of writing, Neo has a famous saying "The world has become good fast!" I am still ignorant ", I feel that these tutorials are somewhat out of fashion, so angry and write this tutorial, I hope to let everyone very convenient without FQ without agent to complete the Android development environment.

To sum up, the Android development environment can be divided into four steps:

First step, install the JDK;

Step two, install eclipse;

Third step, download and install ANDROIDSDK;

Fourth step, install the ADT plugin for Eclipse

This is detailed below.

First step, install JDK

The Android development tool requires that the JDK (javadevelopment Kit) must be installed, not just the JRE (Java Runtime Edition), and that you need to install JAVAJDK before installing the Android developer tools. In particular, the eclipse development process must be supported by the JDK or JRE, or you will get an error when you start eclipse:

First, go to the Java official web (http://www.oracle.com/technetwork/java/javase/downloads/index.html) to download the JDK (note that the JDK is downloaded, not the JRE),

After clicking the JDK download button, go to the JDK version selection screen, find the JDK version that fits your computer system, and download, as shown in the Win32-bit system select Windows x86,64-bit system, select Windows x64 installation:

After downloading, double-click Install:

Then choose the path you want to install:

Installing the JDK will automatically install the JRE, choosing the path you want to install:

Then continue to the next step, until the final installation is complete:

Once installed, configure environment variables. Create a new system environment variable named Java_home, and the variable value is the JDK installation path, as shown in:

Then in the list of system variables, double-click the path variable and%java_home%\bin; %java_home%\jre\bin append to the variable value (note that when added at the very end of a variable, remember to add a semicolon):

The Oracle JDK is now part of the system's executable search path, and the address is easy to find. In order to verify that the installation was successful, open a command-line window and execute javac-version at the command prompt. If the installation is successful, you will see the Oracle JDK version number, as shown in:

Step two, install Eclipse

To download Eclipse on the Eclipse website (http://www.eclipse.org/downloads/), select the Eclipseide for JAVA EE developers and choose a 32-bit or 64-bit installation package based on your system.

After the eclipse is downloaded, it is a zip archive that can be extracted directly into the folder you want to place, without having to install it yourself, with the following file directories:

When eclipse is installed, double-click "Eclipse.exe" to open it, as shown in:

Be aware that eclipse is turned on at this point. It is possible to report the following error:

This problem may occur because the environment variables of the JDK are not configured, and are configured as described in the first step in the JDK environment variable settings. If it is still an error, then it is possible that the environment variable or not set, this situation we just need to restart the computer on the line. If not, you can add two lines to the front by modifying the Eclipse.ini file:

-vm

D:\android\Java\jdk1.8.0_51\bin\javaw.exe (Note that you need to replace D:\android\Java\jdk1.8.0_51\ with your own JDK installation directory)

After the above toss, now eclipse can be launched smoothly!

After you start eclipse, you will first have to choose a workspace and specify one yourself (the default is the C-Drive workspace folder):

Then go to the Eclipse welcome interface, as shown in:

Here, the eclipse installation is complete.

Step three, download and install ANDROIDSDK

In the first two steps, we have configured the JDK variable environment and installed Eclipse, and after these two steps, the Java development environment is ready, if we just develop a common Java application, then here we are. But if we're going to develop an Android app through Eclipse, we'll also need to download the Android SDK (software development Kit) and install the ADT plugin on Eclipse.

First, download the Android SDK Tools, and the friends who have turned over the wall can go to Google Android's official web download (http://developer.android.com/sdk/index.html). Do not want to FQ friend, can go to my BD disk download (Http://pan.baidu.com/s/1nt8BcBB), or go to this website (http://www.androiddevtools.cn/). Here is a look at the situation on this site, first open http://www.androiddevtools.cn/, we can see that there is a variety of Android development tools required, first find the SDK tools:

Choose the latest version on the line. Note that there are EXE and zip two files available for download, EXE is a setup program, download it needs to double-click installation. It is recommended to download the zip archive, download it and unzip it directly to the path you want to install on Android. The extracted file directories are as follows:

Then double-click on "SDK Manager.exe" to launch the SDK Manager:

See there are so many need to choose the installation of time, is not a moment a bit dizzy saw stars do not know how to do ah ... Especially for the heavy-choice phobia like Neo, it really feels like the head is going to explode ... This time, must keep calm.

Here I only say a few must install, as shown in, the Tools folder inside the Android SDK tools (which we have already downloaded in the previous step, generally will not let you install again, but may let you update), then the Android SDK Platform-tools and Android Sdkbuild-tools, note that just download the latest version on the line.

Then there is the choice of the API. We can see that there are many versions of the API available from Android 2.2 to Android 5.x, so how to choose. Here I suggest, novice words, choose a latest version just fine, because Android is backwards compatible. Other later you have to use the download on the line (because the speed of downloading the installation is too slow ...) )。 So as shown here, I only chose to download the current latest Android 5.1.1 (API 22). What needs to be explained here is that if you do not intend to use the simulator to debug, but always use the real machine to debug, then you can not install "system images". But novice words, do not know how to choose, or suggest directly all hook up,

The last thing in the Extras folder is, as shown,

Theoretically speaking, if the speed of the extras is allowed, the time is abundant, it is all downloaded, should be good things. But at first, you can use only three of the installation, Android support Repository, Android Supportlibrary, and Google USB Driver. Others have time to download it later.

The next step is to install it. Be aware that these things are downloaded on Google's servers. As we have a wall in the celestial world, there may be situations that are not connected, such as:

At such times, we can download the installation through a domestic mirror server with the Android SDK, here are a few recommended:

1, CAS Open Source Association Mirror station Address:

ipv4/ipv6:http://mirrors.opencas.ac.cn Port: 80

2. Beijing University mirror server address:

ipv4:http://ubuntu.buct.edu.cn/Port: 80

ipv4:http://ubuntu.buct.cn/Port: 80

ipv6:http://ubuntu.buct6.edu.cn/Port: 80

3, Dalian Neusoft Institute of Information Mirror server address:

http://mirrors.neusoft.edu.cn Port: 80

Just pick one. Here I choose is the third site, that is, the image of the east of Dalian, the use of the following methods:

First, click "Tools" in the menu, then select "Options ..." in the dropdown,

Then in the dialog box that pops up, fill in the HTTP proxy server as mirrors.neusoft.edu.cn (the address of the mirror server, note that the front does not add HTTP), and then fill in the HTTP proxy port 80 (port number). Finally, tick the "forcehttps://... sources to be fetched using http://..." check box, as shown in

Then click Close, Close the dialog box, and then restart the SDK manager.

After a long download installation process (recommended to go to bed at night to download ...) , we can see that the status behind the previously selected items is changed from "Notinstalled" to "installed", which means that we have successfully installed it! Is there any excitement? Ps.. Brush your teeth and wash your face to work. Be late ...

Because the direct use of the SDK Manager online download installation, very long, if you do not want to wait for such a long friend, you can go to the domestic site (http://www.androiddevtools.cn/) to download the need to install the package, This way is much faster, but is to pay attention to choose the package you need to download and the corresponding version, here is not detailed, there is a choice of fear of boron oil can give me a message.

Ok, and then the last step, we are familiar with setting environment variables. The "\platform-tools" and "\tools" paths need to be appended to the system environment variable path, as follows:

First of all, create a new system environment variable named Android_sdk_home, the variable value is your SDK installation path, here my installation path is D:\ANDROID\ANDROID-SDK,:

Then, after the system's path variable, append;% android_sdk_home%\platform-tools;% Android_sdk_home%\tools,:

Then we can check if the Android SDK is installed successfully: enter "ADB version" in the Command line window, and the installation is successful if the following appears:

Fourth step, install the ADT plugin for Eclipse

Thanks to the great nose-picking Bryant! Finally come to the last step! To be able to develop Android on Eclipse, we must install an ADT (Android development Tools) plugin for him.

First open the Eclipse software. Enter the Welcome screen. Click "Help" in the menu and select "Install New software ..." as shown in:

When you click Install New software ..., the Install window pops up, and then click the Add button,

The "Add Repository" window pops up and the information is typed as follows: Name (ADT), location (http://dl-ssl.google.com/android/eclipse/), as shown, and then click the OK button:

In the dialog box that pops up, select the tool you want to install, and then you can do it next:

However, if we do not modify the hosts or use Agent FQ, because (http://dl-ssl.google.com/android/eclipse/) this site in the celestial not to go, so will report the following error:

In this case, we either choose to continue the online installation by modifying the hosts or using proxy Fq, or by using the offline installation method (recommended), see my other blog (http://blog.csdn.net/dr_neo/article/ details/46941859)

After everything is installed, restart Eclipse, and Eclipse will intelligently associate it with the Android SDK in the same directory, depending on the location of the directory, by selecting the menu item "window" and then clicking Preference to view:

Select "Android" in the sidebar, and then if you can see the SDK platform that has been installed, indicate that it has been automatically associated, as shown, if you find that it is not automatically linked, you need to add it yourself, click the "Browse ..." button, select your SDK installation path, add the good line ~

Here, our entire build of the Android development environment on Windows is complete, when, in Eclipse, choose menu item File->new->project to create a new project, We'll be able to see the options for setting up an Android project:

Finish the call! This is the end of the long Android development environment! is not a little chicken frozen Ah! And so what, hurry up and start your Android tour!

Original Address 49870587

JDK Eclipse SDK Download installation and configuration tutorial

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.