Zwiebel
Zwiebel

Reputation: 1615

R or id Cannot be resolved

I have this problem with my android source in Eclipse. I tried to import com.R; but only the R cannot be resolved disappeared. I got the id cannot be resolved now. I "developed" in Eclipse with Android a few months ago too, but there wasn't the ID cannot be resolved problem. What can I do? It is a fresh installed Eclipse+Android ADT+Emulator+ eg...

Upvotes: 0

Views: 299

Answers (2)

Noel
Noel

Reputation: 7410

Are you sure you're not importing android.R but instead, your generated R file, i.e. com.myproject.R?

Upvotes: 3

Austin
Austin

Reputation: 4929

I would delete R, And right click your project and go to Android Tools > Fix project properties. That should work.

Upvotes: 1

Related Questions