I had this happen when I had A group outside of the Source files group, in the project.
My project was set up like this:
Header files
Java Source Files
Libraries
Resource files
Source files
Once I removed the Libraries group, the VisualGDB projects settings started working.