안드로이드를 비정상적으로 종료하면 아래와 같은 락이 걸려버립니다.
Error while waiting for device: Pixel 4 API 33 is already running. If that is not the case, delete /Users/PersesTitan/.android/avd/Pixel_4_API_33.avd/*.lock and try again.
여기서 리눅스나 mac이면 터미널에 아래와 같은 명령어를 통해 간단하게 *.lock
를 제거할 수 있습니다.
컴퓨터마다 다르게 에러가 뜰텐데 delete
뒤에 있는 파일 경로를 그대로 복사해서 아래 명령어를 실행하면 됩니다.
rm <복사한 경로>
저 같은 경우 아래와 같이 입력하면 됩니다.
rm /Users/PersesTitan/.android/avd/Pixel_4_API_33.avd/*.lock