When Android O is upgraded to P (8.0 to 9.0), the following exception will be reported
HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to 192.xxx.x.x not permitted
Because Android P prohibits access to http APIs by default, if you want to skip https restrictions, you need to AndroidManifest.xml
add the following content to the Application.
<application
...
android:usesCleartextTraffic="true"
...
/>
Before adding:
After adding: