6

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

Ravi Vaghela
  • 3,420
  • 2
  • 23
  • 51

2 Answers2

17

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

UPD: News! Android Studio Dolphin is stable now, feel free to upgrade.

sergpetrov
  • 1,506
  • 1
  • 11
  • 20
0

This solution is related to the Android Studio Dolphin Version

After alot of searching and testing, I upgraded my gradle version and its work for me.

Just goto File -> Project Structure or press Ctrl + Alt + Shift + S and then upgrate the gradle version as shown in the image below and then invalidate cache and restart the Android Studio and its working

enter image description here

As shown in the image I upgrade my gradle

Happy Coding With Android Studio :)

Syed Rafaqat Hussain
  • 1,009
  • 1
  • 9
  • 33