This is my local context solution...
I have a Docker/Lando instance providing me an API from a Lumen Restful app, local domains are not working ("https://localhost:32769", "http://localhost:32770", "http://wxyz.lndo.site", "https://wxyz.lndo.site"), however, when I check the network IP using "ifconfig" in the terminal I could access using that IP
$ ifconfig
You must add a new parameter to your AndroidManifest.xml
android:networkSecurityConfig="@xml/network_security_config"
I use this network_security_config.xml file for local debugging
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:android="http://schemas.android.com/apk/res/android">
<debug-overrides>
<trust-anchors>
<certificates src="user" overridePins="true"/>
</trust-anchors>
</debug-overrides>
</network-security-config>
I use user-permissions as well
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />