• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps R cannot be resolved to a variable

I have tried Project > Clean numerous times and it still has not resolved the issue. Other sites have said to reinstall the .android folder, remove the import R line, change the target of the run/debug for the project, turn automatic rebuild off, delete and recreate all AVDs, etc. but nothing has worked. Any ideas?
 
Upvote 0
oh, nevermind, All I had to do was delete the line in the xml file which was throwing an error, save, and turn on automatic builds. Then the error went away and "/res" built properly under the "gen" dir.

Odd, I commented out the line but the error wouldn't go away. I had to delete it...

here is a helpful link for this error

eclipse - R cannot be resolved - Android error - Stack Overflow
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones