[Android] basic development environment for Environment configuration (SDK/Android Studio) and androidsdk

Source: Internet
Author: User

[Android] basic development environment for Environment configuration (SDK/Android Studio) and androidsdk

========================================================== ======================
Author: qiujuer
Blog: blog.csdn.net/qiujuer
Website: www.qiujuer.net
Open-source Library: Genius-Android
Reprinted please indicate the source: http://blog.csdn.net/qiujuer/article/details/41800229
========================================================== ======================

Cool

It is necessary to say that, in fact, I know that there are countless such environment configuration articles on the network. I do not expect that I can be better than them. After all, they are all great gods!

I wrote such an environment configuration article mainly to record it and facilitate future queries. Maybe I forgot how to configure it later, right?

Of course, the precondition for writing this is that my computer had a fault yesterday and the system was reinstalled. So we need to build a new environment.

Prepare software Java

: Http://www.oracle.com/technetwork/java/javase/downloads/index.html

For downloadJava, I have not considered so much; download the latest directly; currently Java SE 8u25

If you look more troublesome: jdk-8u25-windows-x64.exe (of course 64-bit, 32-bit)

SDK

Here, what you download isEclipseIntegrated ADT

The downloaded package contains the latestSDKAnd a combination that can be directly used for developmentEclipse.

Android Studio

I do not like to useEclipse, But like to use this; although it does not have a formal version.

I downloaded 1.0 Release Candidate 4.

Proxy

Of course, during the download process, you will generally encounter access failures. Should you be aware of this reason?

To put it bluntly, I want to use a proxy. I am using a free door of 7.42 and the speed is good. The main reason is that there is no traffic limit. The SDK can also be used later.

Sind

Generally, the download process is like this. You can use the proxy to go To the download page and click Download. At this time, your browser should download the file, but the download speed is very slow.

Close the proxy, find your file in the download list, right-click and copy, and get a thunder, go to thunder-new task-paste-start task. At this time, the download speed on Thunder is high.

That is to sayThe agent is used to obtain the specific download link, and the specific download is still completed by thunder..


Install software

JavaClick here to install it. However, we recommend that you install it in your custom folder for easy maintenance.

ADT/SDKAfter decompression, you can see the SDK.

Android StudioThis is the case. If you want to download it now, you can download the version integrated with the SDK, non-integrated EXE version, and ZIP green version. I recommend the ZIP green version. You can integrate the SDK.


My file address:

  • Java-JDK: D: \ DKTools \ Java \ JDK \
  • Java-JRE: D: \ DKTools \ Java \ JRE \
  • ADT \ SDK: D: \ DKTools \ Android \ ADT \ SDK \
  • Android Studio: D: \ DKTools \ Android \ Studio \

The environment configuration is as follows.


Environment Configuration

Enter the computer information interface


Click Advanced System settings


Click environment variable


Add it to the user module.

ToJava-JDKFor example:


Additional information:

========================================================== ========================================================== ======== Java: JAVA_HOMED: \ DKTools \ Java \ JDKJRE_HOMED: \ DKTools \ Java \ JRECLASSPATH .; % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ lib \ dt. jar; % JRE_HOME % \ lib \ rt. jarPATH % JAVA_HOME % \ bin \; % JAVA_HOME % \ jre \ bin \======================================= ========================================================== ==================== Android: ANDROID_SDK_HOMED: \ DKTools \ Android \ ADT \ SDKCLASSPATH; % ANDROID_SDK_HOME % \ platforms \ android-20 \ android. jarPATH; % ANDROID_SDK_HOME % \ tools \; % ANDROID_SDK_HOME % \ platform-tools \ remarks: path is the tool directory ======================================== ========================================================== ====================
The above are all the parts to be added. Of course, you need to replace the installation directory (D \ DKTools \...) with your own directory.

Notes

After completionCLASSPATHAndPATH

PATH%JAVA_HOME%\bin\;%JAVA_HOME%\jre\bin\;%ANDROID_SDK_HOME%\tools\;%ANDROID_SDK_HOME%\platform-tools\CLASSPATH.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%JRE_HOME%\lib\rt.jar;%ANDROID_SDK_HOME%\platforms\android-20\android.jar


OK. Now it is complete.

Verify, start-CMD:

java -version
android



Update

ForSDKYou can use the updated ones, or use the agent to update them.

Agent update:

Start the free portal or others. After the connection is successful, enterSDKManagement Interface-Tool-Options:


Add the proxy according to the settings, and then you can select the update to be updated. I personally recommend that you do not update the version 4.0.3 or earlier. It is a waste of space!

Download the updated one:

Http://pan.baidu.com/s/1o6woCUA

There are three versions:


All three versions can be directly overwritten after being downloaded.

An article about how to set up the NDK environment will be published in the future. If the writing is not detailed enough, I hope to correct it.

========================================================== ======================
Author: qiujuer
Blog: blog.csdn.net/qiujuer
Website: www.qiujuer.net
Open-source Library: Genius-Android
Reprinted please indicate the source: http://blog.csdn.net/qiujuer/article/details/41800229
========================================================== ======================

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.