Fix sliding menu issue for gradle build.