After change of Android SDK version 33 suggestion not work in xml layout file

Issue

I have change targetSdkVersion 33 and compileSdkVersion 33 then current code in layout file suggestion not working. I have try with cntrl+space but not working. Like i have added one button in layout and I want to define text or text color size etc. Property from xml code. but not get suggestion for example android:text

 compileSdkVersion 33
 defaultConfig {
    applicationId "com.xyz"
    minSdkVersion 21
    targetSdkVersion 33
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    vectorDrawables.useSupportLibrary = true
}

  buildFeatures {
    dataBinding true
}

See below image for more understanding
enter image description here

enter image description here

Solution

I had the same problem after migration to the 33 SDK version.
It’s a bug in Android Studio Chipmunk, this issue in Google tracker.
They fixed it for Android Studio Dolphin, it’s in the beta still but you can use it if it’s not critical for you, otherwise, you need to roll back to the 32 SDK version because it seems it won’t be fixed in the Chipmunk now.

enter image description here

Answered By – sergpetrov

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published