Hun's Blog

Setup Android Development Envrionment on Mac OS 본문

Others

Setup Android Development Envrionment on Mac OS

jhk-im 2020. 12. 16. 14:05

MAC OS에서 안드로이드 개발환경 셋팅

1. Mac Command Line Tools

// 터미널 입력

xcode-select --install

2. Homebrew 

 

Homebrew

The Missing Package Manager for macOS (or Linux).

brew.sh

Install Homebrew 

// 터미널 입력

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

 

3. ZSH

 

ohmyzsh/ohmyzsh

🙃 A delightful community-driven (with 1700+ contributors) framework for managing your zsh configuration. Includes nearly 300 optional plugins (rails, git, OSX, hub, capistrano, brew, ant, php, pyt...

github.com

Basic Installation

// 터미널 입력

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

 

4. ZSH Highlighting

 

zsh-users/zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh. Contribute to zsh-users/zsh-syntax-highlighting development by creating an account on GitHub.

github.com

In your ~/.zshrc

// 터미널

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc


source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

 

5. ZSH Auto suggestions

 

zsh-users/zsh-autosuggestions

Fish-like autosuggestions for zsh. Contribute to zsh-users/zsh-autosuggestions development by creating an account on GitHub.

github.com

Oh My Zsh

// 터미널

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
// 터미널

vim ~/.zshrc
// 플러그인 추가

...
plugins=(
        git
        zsh-autosuggestions
)
...

 

6. zsh - powerlevel10k

 

romkatv/powerlevel10k

A Zsh theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.

github.com

Oh My Zsh

// 터미널 입력

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
// 터미널 입력

vim ~/.zshrc
// 테마변경

ZSH_THEME="powerlevel10k/powerlevel10k"

Terminal 최종결과

7. Android Studio

 

Download Android Studio and SDK tools  |  Android 스튜디오

developer.android.com

안드로이드 스튜디오 설치 후 sdk, avd 확인 

  • 안드로이드 스튜디오 창 가장오른쪽 AVD Manager와 SDK Manager를 통해 설치 

마지막으로 안드로이드 스튜디오 터미널에 zsh 적용 되었는지 확인 

 

 글자크기 변경은 활성화해두자 

SDK Manager icon -> Editor -> General -> Change font size with Command+Mouse Wheel check!