6

After upgrading android studio to 3.1, in old projects I have a problem - Cannot resolve symbol 'Theme'

Cannot resolve symbol 'Theme' Validates resource references inside Android XML files

I tried to do a lot of things but I still see the same problem. What I've done: *sync project with gradle files; *invalidate cache and restart; *Bild, Rebild project; *compared gradle version in AS (4.4 - 3.1.0) and in a project (3.1.0) - the same; order of repositories google() jcenter() and I did many other things but I don't have result( who knows how to solve?

Artem
  • 85
  • 1
  • 7
  • See also: https://issuetracker.google.com/issues/73536373 – Jim Andreas Apr 08 '18 at 04:29
  • 1
    Thanks for your help @Jim Andreas. In your link I found another link that helped me! - https://stackoverflow.com/questions/49523302/android-studio-3-1-cannot-resolve-symbol-themes-widget-attr-etc – Artem Apr 12 '18 at 02:26

1 Answers1

10

Close the project from the File menu and open the project again as existing Android Studio project. This worked for me.

Roshan
  • 369
  • 4
  • 9