0

when i add or update a dependency in app gradle class R will not find in my activity class.

 "android cannot resolve symbol R" 

enter image description here

mohammadReza Abiri
  • 1,759
  • 1
  • 9
  • 20

1 Answers1

2

Top yellow bar has a function "Sync now". You can click it and it will sync the Gradle files.

If this doesn't work you can try

Build > Clean Project

Build > Rebuild Project

You can also try

File > Sync Project with Gradle Files

Beasteca
  • 83
  • 9
  • 1
    In a case like this question please close the question against the canonical duplicate. – jww Oct 22 '18 at 13:26