Configure Android development environment under Mac

Source: Internet
Author: User
Tags rar

From yesterday afternoon to now, with almost a full day of time to familiar with the Mac and configuration environment, the basic is OK, the overall record of the problem encountered throughout the process.


1. Installing the Java Environment

Before I heard that Mac comes with a Java environment, java-version a little bit of nothing, so I will install Java first.

Oracle website download Java can, link http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=ocomen

I downloaded the java7,

Install directly here, no problems encountered


2. Installing Adt-bundle-mac

As Google Now aggressively promotes his Android studio, the official website seems to have removed eclipse with ADT, only to download studio or choose the Android SDK to match eclipse, but that's too much of a hassle. Before the project was eclipse, or the first to use the familiar environment to transition, so the world to find eclipse.

It took a long time to find a suitable adt-bundle-mac-x86_64-20131030.

There are some problems here, the new project will be error after opening eclipse,

Errors running builder ' Android Resource Manager ' on Project ' * '. java.lang.nullexception

See some people say that may be the Java environment problem, the previous uninstall clean re-installed, I after the execution of the terminal command Uninstall, Java7 is still in, but again open eclipse is good, think of a version of Eclipse before the opening of the request JAVA6 environment, Have installed Jre6, do not know with this has no relationship, but good there is no further scrutiny.


3.ant

Download link http://ant.apache.org/bindownload.cgi

Refer to http://blog.sina.com.cn/s/blog_877e9c3c0101qs87.html and http://yarin.blog.51cto.com/1130898/692569 for installation.

Feel reference to the first can be, these two is just the different installation directory, the first put in the/usr/local inside, the second said in the local may have problems put into the/usr/share inside, I in the configuration because there is no logout login, so the configuration of the environment does not work, Just follow the second tutorial again.

After the configuration to log off and re-login, Linux is not familiar with such a silly force.


4.ndk

Refer to Http://www.cnblogs.com/zhongyuan/p/4065801.html and http://blog.csdn.net/zf135792468/article/details/9968761

NDK download down is. bin file, a little blindfolded, compared to a bit MD5 is indeed true, puzzled for a half-day to decompress well, to note the decompression method.


This is basically done, because the previous project is compressed on Windows, so is the file in RAR format, and configure the most days of RAR decompression method.

Reference http://jingyan.baidu.com/article/b24f6c82c50ad686bfe5da33.html


It is no problem to import the previous project into eclipse, but the Ant Package SDK package and so on, some paths in the project may have to be changed, the environment is no problem.


jason0539

Weibo: http://weibo.com/2553717707

Blog: http://blog.csdn.net/jason0539 (reprint please indicate the source)


Configure Android development environment under Mac

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.