How to Solve Warnings Cleartext traffic allowed for all domains?

The Cleartext traffic configuration is required for the app to run on http and https protocols, the cleartext traffic warning is not an error, but a warning which can be ignored.

But, if you want to solve or remove the warning, it's also can be removed, but with consequences and with note that the app will only run on https protocol, if you use http protocol, the content will not be able to be loaded from the server to the app.

To remove the warning, in the Android Studio project, open res/xml/network_config.xml, then, in the base-config cleartextTrafficPermitted configuration, change the value from true to false, by using false value, the warnings message will be disappear when you publish the app on Google Play.





My Instagram