Mobile/Android
[ Android ] unable to open debugger port (localhost:8700)
imcodding
2020. 8. 28. 09:14
반응형
안드로이드 개발자라면 한 번쯤은 나타나는 에러다. 디버깅 모드로 실행을 하다보면 나온다.
error running 'app': unable to open debugger port (localhost:8700):
java.io.ioexception "handshake failed - connection prematurally closed"
한 번 뜨면, 실행할 때마다 에러가 뜨면서 프로젝트가 실행되지 않는다.
그럴 경우 다음과 같이 진행하면 된다.
안드로이드 스튜디오에서 아래쪽의 Terminal 클릭한다.
> adb kill-server
> adb start-server
위와 같이 입력해준다.
다시 실행하면 정상적으로 동작한다.
반응형