I am trying to clean project,each time it gives R error that is R can not be resolved to a variable,Please help to find this issue.
Asked
Active
Viewed 46 times
0
-
try to invalidate caches and then restart – Anus Kaleem Feb 23 '17 at 06:50
-
how to invalidate caches,please – Juned Feb 23 '17 at 06:50
-
If using android studio, then click on file->Invalidate caches / restart – Anus Kaleem Feb 23 '17 at 06:53
-
i am working this project in eclipse – Juned Feb 23 '17 at 06:56
1 Answers
0
Please check your res folder. If there is any syntax error(naming convention in drawables) in res than it gives R error.

Ragini
- 332
- 1
- 4
- 16
-
res folder is correct.Project has no issue ,one day i had shut down system after restart of eclipse it is giving error. – Juned Feb 23 '17 at 07:04
-
Please refer this link -http://stackoverflow.com/questions/16642604/eclipse-error-r-cannot-be-resolved-to-a-variable – Ragini Feb 23 '17 at 07:07