Android Self-study (i) Environment construction

Source: Internet
Author: User

Interest in mobile development has been long, suffering from not much time to calm down the heart of learning, recently just had time, ready to learn the next Android (why not learn iOS it?) Because I can't afford a Mac. )

Gossip less, just on hand there is an idle ThinkPad e145,64 bit Ubuntu, then take to build Ubuntu under the Android environment. In the online search a few very detailed environment construction process, but actually encountered a lot of problems, the following also write down their own construction process.

1.JDK

Ubuntu has its own openjdk (the terminal knocks Java-version can see), but it still needs a more complete JDK. The download process is no longer in detail, after downloading the archive manager to open the extract, and then the environment variable configuration

Enter sudo gedit/etc/profile in the terminal to open the file

Add the following four lines to this file

Export java_home=/home/xxx/java/jdk1.7.0

Export JRE_HOME=/HOME/XXX/JAVA/JDK1.7.0/JRE

Export classpath=.: $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib

Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH: $HOME/bin

(path attention is replaced with your own JDK path)

And then java-version to see if it worked.

2.Android SDK

Download and unzip the website, the other first regardless

3.Eclipse

Also to the official website to download the corresponding version of the system, unzip

Then open eclipse ready to install ADT, open Eclipse--->help--->install New software

Plug-in Address https://dl-ssl.google.com/android/eclipse/ , but this address may not be connected, can be replaced by http:// dl-ssl.google.com/android/eclipse/

Follow the prompts to install development Tools, restart Eclipse after successful installation, and then configure the Android SDK path

4. Update to install the Android SDK

Open the Android SDK Manager to choose the Android version you want to install, but this is the most headache, because you will encounter the "dl-ssl.google.com refused" error, although the online construction process is more or less mentioned this , and give a solution to configure the hosts, but tried for a long time, and later found a new solution, finally solved the problem

The solution is:

Hosts increased:

203.208.46.146 www.google.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

Modify the https://to HTTP//
In the Android SDK manager->tools-options ... Option interface, "Force https://... sources to be fetched using http://..." Check

In the end, the environment is built ... (Ubuntu is not familiar, will not, later to fill it)

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.