skip to Main Content

While adding the android:text="" property to my XML file, I want to quickly extract the string, but the quickfix option is not showing up anymore

https://i.stack.imgur.com/0iAAW.png

Here’s a picture of what shows up when I use ALT+ENTER in the string. I also want to mention that it used to work no problem before, but suddenly it just doesn’t appear anymore. I checked the option in the File/Settings/Editor/Intentions/Android/Extract string resource as well and it still didn’t solve the problem.

Does anyone know how I could fix this?

2

Answers


  1. I fixed this by using old compileSdk version.(33 to 31 for me)

    Login or Signup to reply.
  2. By modifying as below, it works. In build.gradle,

    1. Change the version of compileSdk and targetSdk from 33 to 31
    2. Downgrade the versions as following.

    androidx.core:core-ktx:1.6.0
    androidx.appcompat:appcompat:1.3.1
    com.google.android.material:material:1.4.0

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search