If I add it in <application>
then it is giving me C:\Users\adity\Desktop\Parse-Server-Starter-Project\ParseStarterProject\build\intermediates\packaged_manifests\debug\AndroidManifest.xml:27: AAPT: error: attribute android:usescleartexttraffic not found.
Asked
Active
Viewed 5,206 times
3

Aditya
- 325
- 6
- 19
-
Hope This Question would help you! [Link to the Question and Answer](https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted) – Emon Hossain Munna Nov 19 '20 at 07:55
2 Answers
8
It should be
<application
android:usesCleartextTraffic="true">
and not
<application>
android:usesCleartextTraffic="true"
</application>

abdiwan
- 279
- 1
- 5
1
I think it a little typo on your code
android:usesCleartextTraffic="true"
is case sensitive
here the sample overall:
<application
android:name="com.your.app.package"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">

Mochamad Taufik Hidayat
- 1,264
- 3
- 21
- 32