Mac configuration Android development environment variables and tool installation Diagram

Source: Internet
Author: User
Android development tools

To install android on a Mac machine, you need to download the following tools:

  • Sun's Java Development Kit (JDK)
  • Android software developer kit (SDK)
  • Eclipse IDE
  • Android developer tool (ADT) Eclipse plug-in
Java Development Kit

Mac OS X has been pre-installed with JDK 5 for Mac developers, which saves some trouble. This section is omitted. However, if you are using a Windows or Linux system, we need to download JDK 5 or JDK 6 first.
,. To mention it, it is a mistake to say that eclipse must be installed for Android development. It can only be said that Google is dedicated to eclipse development plug-ins. These eclipse makes it easier to edit, compile, run, and debug.

Android software development kit

Click the link to download the android SDK
You need to select the operating system you are using during the download process. The downloaded file is a zip file. Select an empty folder and decompress the compressed file. In this article, the path I selected depends on:

ClickAndroid
A dialog box is displayed. SelectAvailable packages
.

Select a selection box in the dialog box on the right, as shown in. ClickInstall selected
Click to download updates.

Eclipse IDE

It is time-consuming to download the SDK, so we can free up time to download eclipse. Currently, there are several eclipse versions. Here I download Eclipse IDE for Java developers, 3.5 Galileo
Version. Decompress the downloaded Eclipse IDE compressed file. Because I only use eclipse for Android development, I decompress it to the sub-Folder eclipse in the android folder just now.

Install Android development tools (ADT)

Double-clickEclipse.exe
Run eclipse. SelectHelp
, ClickInstall new software
. Enter the corresponding address in the pop-up dialog box and clickAdd
.

In the new dialog box that appearsAdd site
ClickOK
Button.

Return to the previous dialog box and selectDeveloper Tools
Select box.

Keep clickingNext
The installation is complete.

InLicense
In the dialog box, a dialog box will pop up to warn you that you are installing unsigned software. ClickOK
Continue.

Then restart eclipse.

Configure Android Development Kit (adk) in eclipse)

In this case, configure the adk in eclipse to point to the android SDK. ClickEclipse
Menu item and selectPreferences
. SelectAndroid
. The following dialog box is displayed, prompting that the SDK is not installed.

Select the path to the SDK:

Update Environment Variables

Setting environment variables will save us a lot of trouble for future development. InFinder
Find your root directory and open. Bash_profile
File (hidden file ). Open the file and append the following content. Note: You need to replace it with your own path./Users/John/Android/tools
.

# For Android 
export PATH=${PATH}:/Users/JOHN/Android/tools

The Linux and Mac operations are the same.

Installation Complete

In this case, the installation is complete. If any errors occur during the installation process, refer to the installation of the SDK of Android developer.
.

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.