0

I have pulled my project from github and since then I got the issue “R cannot be resolved to a variable” . Also my folder inside res folder started appearing grey. Below is the screen shots. can anybody help me to solve this issue?enter image description here

MRX
  • 1,400
  • 3
  • 12
  • 32

3 Answers3

2

There will an error in your res folder that is hindering the formation of R.java. See if there is any error in res and then clean the project.

Suhail Mehta
  • 5,514
  • 2
  • 23
  • 37
  • Bro I have checked all my xmls , there was no update in any of the xml files whiled I pulled the project.The project was working fine till then. I have restarted my eclipse cleaned the project but still getting the same error. – MRX Dec 13 '14 at 13:50
  • see if your gen folder has R.java – Suhail Mehta Dec 13 '14 at 13:51
  • Nopes it not generating R.java – MRX Dec 13 '14 at 13:52
  • 1
    it means there will be some error and some time eclipse don't show it.Clean your project and show in console check for error under problems tab – Suhail Mehta Dec 13 '14 at 13:56
0

What IDE do you use? However first of all check your AndroidManifestXml for errors. Check if paths are right. After that try to clean/build your project. I hope to help you

Eleftherios
  • 186
  • 1
  • 13
0

you need to update your ADT plugins because you imported example may its not suppoted..follow this it will give you idea Eclipse error: R cannot be resolved to a variable

Community
  • 1
  • 1