JaeYeopHan / tip-archive

📦 Archiving various development tips. If you watch this repository, you can get issues related to the newly registered development tip from the GitHub feed.
https://www.facebook.com/Jbee.dev/
245 stars 8 forks source link

Android Debugging Environment Setup #62

Open JaeYeopHan opened 4 years ago

JaeYeopHan commented 4 years ago

Android Debugging Environment 세팅

안드로이드 디버깅을 위한 도구 https://github.com/Genymobile/scrcpy 를 설치한다.

$ brew install scrcpy
$ brew cask install android-platform-tools

모바일 폰과 맥북 연결

  1. '개발자 옵션'으로 이동한다.
    1. 이 개발자 옵션은 찾기 힘들다. 검색을 통해 진입하면 빠르다.
  2. [개발자 옵션]에서 USB 디버깅을 활성화 시킨다.
  3. 터미널에서 다음 명령어를 실행한다.
$ scrcpy

USB 연결 후, 잡히지 않는다면 다음 명령어를 실행한다.

$ adb kill-server
$ adb devices