Ionic network security config

Hello i am working on ionic application. with executing this command ionic cordova build android --prod --release . it does generate the unasigned apk file,but it also show error in network_security_config file.

app\src\main\res\xml\network_security_config.xml:4: Error: Missing includeSubdomains attribute [NetworkSecurityConfig] <domain>localhost</domain>

i tried multiple solutions, but doesn’t work for me.


How to allow all Network connection types HTTP and HTTPS in Android (9) Pie?

How Cordova support Network Security Config introduced by Android 7.0?

Could someone help me with this?