Currently in my Android app I have targetSdkVersion 32
and in my AndroidManifest.xml file I have:
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_nameshort"
android:supportsRtl="false"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity"
android:screenOrientation="portrait"
tools:ignore="LockedOrientationActivity"
android:windowSoftInputMode="adjustPan"
android:exported="true">
Everything is fine and working well.
However now when I am updating my app, Android Studio (Chipmunk | 2021.2.1) suggests to use targetSdkVersion 33
. After I do that, there are issues in AndroidManifest.xml:
unknown attribute android:supportsRtl
unknown attribute android:screenOrientation
unknown attribute android:windowSoftInputMode
and also multiple issues in XML layout files. e.g.:
unknown android:contentDescription
unknown android:layout_toEndOf
and much more...
I already tried to invalidate caches, rebuild the project, nothing helps. Only switching back to target version 32 helps. Are those attributes really deprecated or is there any issue? It doesn't say deprecated, just unknown.
I also deleted physically the files from cache folders, I also reinstalled the API 33 SDK, nothing helped.
I even reinstalled Android Studio, with no luck. Seems something is wrong with API 33 vs Android Studio.