Build Android Development Environment on mac OS X10.10, x10.10android

Source: Internet
Author: User

Build Android Development Environment on mac OS X10.10, x10.10android

Because Google does not provide Adt-Bundle download, Android studio is the main tool. The http://www.androiddevtools.cn can be downloaded from this link. Not only adt-bundle, but also the latest AndroidStudio. We are not very familiar with OS X, so we use adt-bundle for installation this time.

1. Download JDK

There are two download methods, one is to download from the link http://www.androiddevtools.cn, select Mac OSX version 1.8u5. As follows:

The second is downloaded from the JDK official website, the file name is jdk-8u25-macosx-x64.dmg, size 219.3 M. I will upload it to the Baidu online storage for you to download later. This method is used for download. After the download is complete, click open and the following will appear:

Click it to start the installation. In the middle, enter the user name and password. After the installation is complete, open a terminal and enter javac-version to check whether the installation is successful.

As shown in, the installation is successful. Haha, in fact, OSX is nothing mysterious. It's all about linux.

2. Download Adt-Bundle

Download from the http://www.androiddevtools.cn and select 64-bit 23.0.2 for Mac OSX.

The file name is adt-bundle-mac-x86_64-20140702.zip. The file size is 320.6 MB. Is a zip compressed package. Open and unzip the package, and you will see eclipse and sdk folders that are familiar to the root windows. This indicates that the installation is complete.

3. Open Eclipse

After opening it, you will be dumpfounded:

To this end, I have studied N solutions:

1, http://www.cnblogs.com/zhouyinhui/p/3750836.html let the Change Info. plist, no effect.

2. Configure the jdk environment variable sudo vim/etc/profile, and enter:

 

JAVA_HOME =/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/Home

Export JAVA_HOME

Then source/etc/profile has no effect. Note that sudo vim must be used to set jdk environment variables. Exit and use wq! Otherwise, it cannot be saved. The JDK path looks like The OSX of high and low versions is not the same. The variables printed by/usr/libexec/java_home in the terminal should prevail. See http://han.guokai.blog.163.com/blog/static/136718271201301183938165/

3, finally found the link: http://java.com/zh_CN/download/faq/java_mac.xml#mac1010

The above link is open eclipse, pop-up window "More information", http://support.apple.com/kb/DL1572? Viewlocale = zh_CN & locale = en_US, as follows:

The downloaded file name is JavaForOSX2014-001.dmg, more than 60 M. Click Install. Finally, Eclipse is started, and the rest will not be long-winded.

Conclusion: you must first download the java 1.6 installation package on the official website of apple, and then download and install jdk8u25 on the official website of java. if the latter is required or not, I did not test it. I installed these two things on my mac.

Note: The latest jdk8u25 can be successfully installed on OSX10.10, no need to follow the http://www.krislq.com/2014/07/mac-x-yosemide10-10-update-jdk-7-jdk-8/ for processing.

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.