I have updated SDK.R cannot be resolved to a variable
问题 I have updated SDK for the latest but still I am getting this error .R cannot be resolved to a variable. I know its not generating R.java. what should I do to resolve this issue. 回答1: update your Platform-Tools and install Android Build tools too... and restart your eclipse... hope this helps.. check here for more info.. 回答2: Assuming your Java code is correct, most likely your cause is an error in a resource or your AndroidManifest.xml file that is preventing R.java from being regenerated.