I once couldn't add a file to the path, it wouldn't identify the file as a Java class, so i hit the "Sync All Gradle Projects" and it finds and rebuilds the entire workspace.