CLEARTEXT communication to XXX.XXX.XXX.XXX is not permitted by network security policy
Just add this in application tag in your manifest-:
android:usesCleartextTraffic="true"
Here
<application
android:usesCleartextTraffic="true"
android:name=".Dao.MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:usesCleartextTraffic="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
I hope it helps!!