2

In the styles.xml when picking out Theme from android it gives the error. I have attached a screenshot related to this. Error in styles.xml File screenshot. Please Click to look into it.

Another problem was with actionBarSize. In layout file it gives error when getting actionBarSize from android itself. i have attched a screenshot related to this below. ?attr/actionBarSize gives error. Please click on this link to see.

I have also checked and searched for answers about this but couldn't find one that could solve this.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Harsh Jain
  • 1,372
  • 1
  • 9
  • 17
  • 1
    Possible duplicate of [Android Studio 3.1 Cannot Resolve Symbol (Themes, Widget, attr, etc.)](https://stackoverflow.com/questions/49523302/android-studio-3-1-cannot-resolve-symbol-themes-widget-attr-etc) – Rapunzel Van Winkle Mar 31 '18 at 00:47
  • @RapunzelVanWinkle Thanks but I tried the same but didn't worked. – Harsh Jain Mar 31 '18 at 10:55

1 Answers1

13

close project -> import gradle project.

It's a stupid solution but somehow worked for me.

It's solution from other question btw, but i can't find it right now, Ill update if i find it.

Update found it: Original issue with this solution

Update 2 It addresses only issue with ?attr/actionBarSize

Alpha
  • 1,754
  • 3
  • 21
  • 39