Setting up Android environment on macOS

android-transfer-header-copy

I. Prerequisite:

  • macOS seirra 10.12
  • installed Java jdk
  • installed android SDK

II. Setup bash file

  1. Open terminal and type

$ nano ~/.bash_profile

add more line:

$ export ANDROID_HOME=/YOUR_PATH_TO/android-sdk

$ export PATH=$ANDROID_HOME/platform-tools:$PATH

$ export PATH=$ANDROID_HOME/tools:$PATH

2. Reopen terminal and type:

$ source ~/.bash_profile

3. To check it work, type the command in terminal:

$ android

~~The Android SDK Manager window will be appear.~~

 

Hope this help!!

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.