Elia Montecchio
Elia Montecchio

Reputation: 49

Can't find R class

When i open eclipse, the R class in my project is disappeared. Why?
I've eclipse juno and the last version of android SDK.

The R class doesn't regenerate because there are errors in the code...
How can i solve this problem?

Upvotes: 4

Views: 5507

Answers (4)

Muhammed Fasil
Muhammed Fasil

Reputation: 8566

Clean your project and rebuild it

Build/Clean project

Build/Rebuild project

in android studio

thank you

Upvotes: 0

Edward Falk
Edward Falk

Reputation: 10063

Look for errors in the XML resources; those will prevent R from being built, along with errors in the code.

The "Errors" tab in Eclipse is your friend here.

Upvotes: 0

bricklore
bricklore

Reputation: 4165

Try Project -> clean

if this fails, fix the errors and build the project again,
the R class will regenerate.

Upvotes: 3

poitroae
poitroae

Reputation: 21367

Have you tried to rebuild your entire project? You can do that with the menu item Project -> Clean.

Upvotes: 2

Related Questions