I would like to fix this error
R cannot be resolved to a variable
I looked up many answers, but I could not get the right one;
All the above suggestions should work normally, if you are still facing issue I suspect you are using 64bit OS and ADT is looking for 32bit binaries
try executing below command in terminal and clean the project once
sudo apt-get install ia32-libs