Unable connect to a HTTP URL in Android 10
问题 I am using a http://something API for the login process. But could't get a hit on API in Android 10. For rest of the version, the API is working fine. First of all, I was getting SocketTimeoutException . Then I tried following solutions. 1) Added below attribute to <application> in Manifest. android:usesCleartextTraffic="true" Result: Still getting SocketTimeoutException . 2) Then I added networkSecurityConfig : <network-security-config> <domain-config cleartextTrafficPermitted="true">