I have an app uses clearText
between Android-client and server using Retrofit
, and in Android 9+
it's not allowed to use clearText
.
To ignore that I added android:usesCleartextTraffic="true"
in Manifest
but it warns: tools:ignore="GoogleAppIndexingWarning"
and suggests to add tools:targetApi="m"
.
It's a bit confusing:
Is the
tools:targetApi="m"
means that any attributes withtools:
is for Marshmallow and higher?Is it for using this version of Manifest or something else? Is this making unwanted mistake in my app?
My Manifest:
...
<application
android:name=".ApplicationClass"
android:allowBackup="true"
android:fullBackupContent="false"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="false"
android:theme="@style/AppTheme.NoActionBar"
android:usesCleartextTraffic="true"
tools:ignore="GoogleAppIndexingWarning"
tools:targetApi="m">
...