Search code examples
javaandroideclipser.java-file

R cannot be resolved to a variable-After Updating Android API 20 to new API 22 in Eclipse


I Updated my SDK API 20 to API-22 in My Eclipse.

After Updating i imported my Project from Previous Workspace.

Each Java file Showing as a R cannot be resolved to a variable.

before Updating its Works fine for me.

Help me to solve this problem


Solution

  • You will have to update the Android SDK Build-Tools to the latest version as well. Use the sdk manager to do so. Refer a similar question here.