Search code examples
androidandroid-manifest

Android 33 - issues in manifest and layout files in Android Studio


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.


Solution

  • I have the same issue, with targetSdkVersion 33. Then I update Android Studio to (Android Studio Dolphin | 2021.3.1).

    Issue is solved.