Kumar
Kumar

Reputation: 979

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

Upvotes: 0

Views: 275

Answers (2)

ka2010
ka2010

Reputation: 98

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.

Upvotes: 1

Akshay Bhat 'AB'
Akshay Bhat 'AB'

Reputation: 2700

Clean your Project Once : Select Clean Option Under Project Tab.

Then Rebuild or Run Your Project.

Upvotes: 1

Related Questions