Reputation: 291
This is a dumb newbie question, but one that is driving me nuts.
I have an Android project being developed on Eclipse with two source files. Eclipse for some reason decided I didn't need one of the files and removed it from the project (i.e., I pushed the wrong key at the wrong moment). Now I only have one source file in my project. The lost source file is still there in the directory, but Eclipse just doesn't recognize it as part of the project. How do I get it back?
Upvotes: 0
Views: 475
Reputation: 618
Try dragging the file out of your folder onto the desktop, and then drag it from the desktop into your source folder in eclipse. I've had a handful of different situations where this was necessary.
Upvotes: 1
Reputation: 10948
MY first suggestion is press F5 on the source folder.
Second suggestion, right click the project folder->Properties->Java Build Path -> Source - expand ".../src" and ensure your source file is not under the Excluded option.
Upvotes: 2