android studio cannot resolve symbol xxxx

  1. Close Android Studio
  2. Go to C:Users*your username*
  3. Locate the Android Studio settings directory named .AndroidStudioX.X (X.X being the version)
  4. Rename it to something like old.AndroidStudioX.X
  5. Start Android Studio, and when it asks if you want to import settings, choose the old directory
原文地址:https://www.cnblogs.com/fu609277362/p/14104825.html