This is not related to EGit at all. It seems like you have added the project itself as a source folder, instead of app
. To correct this, do the following:
- Open the properties of the project
- Go to Java Build Path > Source
- Remove the project folder from the build path
- Add the app folder to the build path