Can not resolve symbol 'R'

0

From one moment to the next, all my Activity java shows me an error in the resource R

    
asked by EVM 04.09.2017 в 03:00
source

2 answers

1

You have Build->Clean and then Build->Rebuild for the IDE to clean cache and recognize the new changes.

    
answered by 04.09.2017 / 03:27
source
0

This problem sometimes occurs when adding a library-dependency-assisted mode, which is not correctly performed. For example if you have added the dependency of a library with a version level, when another version level is required In this case, try adjusting the dependency manually:

  • access the app / build.gradle
  • adjust dependencies (for example, correct certain version levels to match)
  • save and synchronize (go to Tools / Android / Sync projects with Gradle files)
  • answered by 17.06.2018 в 12:50