# 06/2020년
맥에서 adb 에러 환경변수 설정 하기
장딴지연
2020. 6. 1. 11:13
반응형
Error: Unable to determine the location of ADB. Please set the --adb flag or define ANDROID_HOME or PATH environment variable. com.android.tools.build.bundletool.model.exceptions.CommandExecutionException: Unable to determine the location of ADB. Please set the --adb flag or define ANDROID_HOME or PATH environment variable.
이런 에러가 발생한 경우
adb 환경변수 설정해 주면 된다.
1. 터미널 실행
2. 리스트 확인
> ls -a
3. .bash_profile 파일 확인
4. 파일 열기
> open .bash_profile
5. 환경 변수 설정
export ADB_HOME=/Users/jiyeon/Library/Android/sdk/platform-tools
export PATH=${ADB_HOME}:$PATH
작성이 끝나면 Cmd + S 를 눌러 저장한 후 Cmd + Q를 눌러 빠져나온다.
6. 열려 있는 터미널 창에서 다음 명령어를 실행해 변경사항을 적용 후 터미널을 빠져나온다.
> source ~/.bash_profile
7. 버전이 제대로 뜨면 성공!!
> adb --version
반응형