Mac OSX configuration Android Studio development software

Source: Internet
Author: User

In order to develop an Android app, you must install the following software on your system:

1.Xcode.

2.JDK.

3.Android Stuido.

4.NDK


Recommended installation Gradle but not necessary, more information please see gradle paragraph.


Your Samsung device may display a notification that recommends you install Android file conversion, a convenient application for converting files between OSX and Android.

Xcode

Before installing any Android development tools, you must install Xcode.

Once the installation is complete, some of the following steps may not be required.

Download Xcode, in https://developer.apple.com/xcode/download/.


Jdk


If the JDK is not installed on your system, install it. If you already have Xcode installed, this step may not be necessary.

The latest beta release is jdk8u45, which can be downloaded in this place: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.


Android Studio


Download the Android Studio toolset from this location: https://developer.android.com/sdk/index.html.

The Android Studio toolset contains the basic tools you need to start developing your Java Android app:

1.Android Stuido IDE

2.Android SDK Tools

3. Latest Android Platform

4. Latest Simulator System image


Once the download is complete, follow the instructions in this location to install: Https://developer.android.com/sdk/installing/index.html?pkg=studio.


Installing the Add-on kit


You must download the additional toolkit required by the Mobile SDK through the Android Studio SDK Manager in TOOLS->ANDROID->SDK manager.android Studio You can be prompted to do some steps automatically when you start it for the first time.


Native development requires the following toolkit:

Android SDK 4.4.2. API level 19 or newer.

Android Build Tools 22.0.1


The Options toolkit under the SDK Tools bar in SDK Manager is working with MOBILESDK:

Android SDK Tools 23.0.2

Android SDK Platform-tools 20

Android SDK Build-tools 20


More information on installing additional toolkits in: https://developer.android.com/sdk/installing/adding-packages.html.


Ndk


The NDK toolset allows you to implement your application in C and C + +. The examples in this release are widely used by the NDK.


The latest beta release is the NDK r10e, which can be downloaded from the following link: https://developer.android.com/tools/sdk/ndk/index.html.

After downloading, unzip the NDK to your Home/dev folder (~/dev). Your dev folder should look like this:


Note the Android Studio and NDK are extracted into their own directory. You can give these directories any name you want, but they must be installed in a separate directory to avoid conflicts between two packages.


You can get more information on the installation and usage of the NDK from this link: http://developer.android.com/tools/sdk/ndk/index.html#installing.


Gradle


Gradle is our offline compilation script and Android Studio management relies on an automated compilation system and allows for custom compilation logic. Gradle replaced the previous Android build system, ANT, which has now been deprecated in Android development.


Use the Mobile SDK without having to install Gradle. The Oculus Mobile SDK 1.0+ compilation script uses Gradle Wrapper, a small Wrapper, to automatically download and install Gradle when you first compile the project. However, if you wish to install all gradle, we will explain below.


The latest beta release is Gradle2.7. If you want Gradle source and offline documentation select full download.


Manual Installation


1. Download from http://gradle.org/gradle-download/.

2. Unzip to the general development directory, for example: ~/android/gradle-2.7.

3. Add Gradle to execute the directory into your PATH variable, for example: ~/android/gradle-2.7/bin

4. Open a new terminal to refresh the path variable.

You should be able to compile using:./build.py-g


To install using brew:

Requires brew, an OSX option package management.

1. Run the sudo brew install Gradle on the terminal.

2. Open a new terminal to refresh the path variable.

You should be able to compile using:./build.py-g


Installation using MacPorts:

One option package management that requires MACPORTS,OSX

1. Run the sudo port install Gradle on the terminal.

2. Open a new terminal to refresh the path variable.

You should be able to compile using:./build.py-g

Mac OSX configuration Android Studio development software

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.