android Pie 대응을 위해서 targetSdkVersion을 28로 변경 후 갑자기UnknownServiceException: CLEARTEXT communication to example.com not permitted by network security policy와 같은 오류가 나오게 경험을 하게 됩니다. 이유는 android pie부터 http가 아닌 https를 이용해야 합니다. Protecting users with TLS by default in Android P 의 내용을 확인하면 됩니다. 간단하게 api의 도메인이 http가 아닌 https를 지원하고 http를 https로 변경만 하면 됩니다. 대부분의 회사 api들이 https를 지원하지만 그렇지 않은 경우도 있죠.이럴 땐 ht..