Reputation: 38613
I am trying to add an 'Android Library project' I have created to another regular Android project.
The Library Project had a jar dependency and was also dependent on another java project in my workspace. I had to add both of these to the my 'regular Android project' because otherwise Eclipse could not find them (Not sure if this was the right thing to do because it would mean that I will have to manually update all projects when the library gets another jar dependency).
Anyway, the errors went away and now the Regular Android Project can't find the R class, I have tried a clean but it did not work. I checked in the /gen folder and both the R classes are there - from the library and the regular project.They have the correct strings inside them.
what is going wrong?
Upvotes: 1
Views: 2758
Reputation: 1710
This can also happen when you have the library project set in the Android dependencies but not in tha "Java Build Path -> Projects" list
Upvotes: 0
Reputation: 93143
It happens from time to time.
I usually delete the Gen folder
and hit Run as...
.
I get a msg saying: R deleted. Recreating!
and everything goes back to normal.
Upvotes: 1