Open AndroidManifest.xml

In the application tag, add this attribute

android:usesCleartextTraffic="true"

If this doesn’t work, also add these tags

<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<uses-library android:name="org.apache.http.legacy" android:required="false"/>