Ionic 4 Angular8

I’m trying to debug android native app by the command [ionic capacitor run android].

But I’ll get the error of [ERR_CLEARTEXT_NOT_PERMITTED].

Even though I added the <application android:usesCleartextTraffic=“true”></application> to AndroidMainfest.xml file, it’s still not working.

Does anyone know how to solve this problem?

Thank you.

I would suggest not trying to persist with cleartext traffic. Use HTTPS and your app will be futureproof, you won’t ever have to worry about any of this again, and you’ll be part of making the Internet a better and more secure place in general.