-3

Android Studio is reporting that is cannot resolve symbol R.

I already performed clean project, rebuild project, analysed and inspected code but it does not resolve the "cannot resolve symbol R" error in Android Studio.

How can I fix this? Please help me.

Chris
  • 4,450
  • 3
  • 38
  • 49
  • 2
    Have you [searched](http://stackoverflow.com/questions/17054000/cannot-resolve-symbol-r-in-android-studio) stack overflow for [similar](http://stackoverflow.com/questions/17421104/android-studio-marks-r-in-red-with-error-message-cannot-resolve-symbol-r-but) [issues](http://stackoverflow.com/questions/36920879/android-studio-2-1-cannot-resolve-symbol-r)? – Jaromanda X Apr 04 '17 at 04:21
  • 1
    Post the screenshot of ur error and try to see if the error appears in just one activity or in every activity – Sachin Bahukhandi Apr 04 '17 at 04:41

1 Answers1

1

First check is there any error in any xml layout or not. If yes, then resolve it first.

Otherwise remove junit dependency from project and rebuild the project.

for more information : https://androidpugnator.wordpress.com/2017/03/30/deal-with-cannot-resolve-symbol-r-in-android-studio/

enter image description here

Nizam
  • 5,698
  • 9
  • 45
  • 57