Support both android and java projects.