1. 에뮬레이터로 실행시 아래 에러 발생
- SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost
- localhost로 api 통신시 해당 에러 발생할 경우 localhost가 아닌 아이피로 변경
- 127.0.0.1이 아닌 10.0.2.2로 변경
'01.모바일 > Android' 카테고리의 다른 글
[Android] Android 11버전 이상 무선 디버깅(공식지원) (0) | 2022.04.29 |
---|---|
[Android] Android 11버전에서 사용 가능한 무선(wifi) 디버깅 (0) | 2022.04.14 |
[Android] Unable to Merge Dex Error (0) | 2017.11.23 |
[Android] Error:Error: 'S' is not a valid file-based resource name character: File-based resource names must contain only lowercase a-z, 0-9, or underscore (0) | 2017.09.23 |
[Android] 점선 그렸는데 안나올 때 (0) | 2017.09.01 |