안드로이드
Android Adb(Android Debug Bridge) Path 설정(MAC)
코딩하는후운
2022. 3. 28. 12:50
반응형
터미널에서 adb 명령어를 사용해도
-bash: adb: command not found
만 발생 하였다
MAC에서 사용하려면 PATH 를 지정 해줘야 하는것 같다.
bash 쉘에서 사용자의 환경설정을 저장하는 .bash_profile 파일이 있는지 체크
ls -l -a .bash_profile
.bash_profile이 없다면 새로 생성
touch -c .bash_profile
.bash_profile 수정
open -e .bash_profile
export문을 .bash_profile에 추가 (username에 자기의 폴더명으로)
export PATH=$PATH:/Users/username/Library/Android/sdk/platform-tools/
bash_profile 실행
source .bash_profile
적용 확인
$adb -version
출처 :
반응형