Instead of the current: import com.google.api.client.Maps; import com.google.api.client.Sets; It should be import com.google.common.collect.Maps; import com.google.common.collect.Sets; that will import the right classes