How to solve Source path does not exist: resources/android/xml/network_security_config.xml

Examine the resources folder if the xml folder exists in /android, if it doesn't just create it like..

resources/ android/ xml/network_security_config.xml

Enter the following inside the file

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
    <domain includeSubdomains="true">localhost</domain>
</domain-config>
</network-security-config>

I also got that error check this

https://github.com/ionic-team/starters/issues/758

in android platform in ionic

<platform name="android">

<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
    <application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<resource-file src="resources/android/xml/network_security_config.xml" target="res/xml/network_security_config.xml" />
<allow-intent href="market:*" />

within your project: resources => android => create folder "xml" create file.xml: network_security_config.xml

`<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">localhost</domain>
    </domain-config>
</network-security-config>`