# ERR\_CLEARTEXT\_NOT\_PERMITTED in debug app on Android

**URL:** <https://forum.ionicframework.com/t/err-cleartext-not-permitted-in-debug-app-on-android/164101>\
**Category:** ionic-v3\
**Created:** [May 17, 2019, 2:15am UTC](https://forum.ionicframework.com/t/err-cleartext-not-permitted-in-debug-app-on-android/164101 "2019-05-17T02:15:56Z")\
**Posts on this page:** 1\
**Showing post:** 48

<div class="post-metadata">

**Author:** ![NikheelCapita](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@NikheelCapita](https://forum.ionicframework.com/u/NikheelCapita)\
**Post date:** [February 23, 2020, 5:35am UTC](https://forum.ionicframework.com/t/err-cleartext-not-permitted-in-debug-app-on-android/164101/48 "2020-02-23T05:35:24Z")

</div>

Add below snippet inside your config.xml under the platforms tag:

```auto
        <access origin="*" />
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
            <application android:usesCleartextTraffic="true" />
        </edit-config>
        <allow-navigation href="*" />

```

Remember to add xmlns:android=“[http://schemas.android.com/apk/res/android](http://schemas.android.com/apk/res/android)” attribute in edit-config tag or else it gives error for android platform\>=8.

---

_[View the full topic](https://forum.ionicframework.com/t/err-cleartext-not-permitted-in-debug-app-on-android/164101)._
