If you are using cordova add a config tag in your config.xml. Something along the lines of
<edit-config target="AndroidManifest.xml" parent="/manifest">
<application android:usesCleartextTraffic="true" mode="merge">
</edit-config>
If you’re using Capacitor then a) don’t run cordova commands in it and b) Capacitor shouldn’t be overwriting any Android files in the firest place.