here is a snippet of my build.gradle:
compile \'com.google.api-client:google-api-client:1.19.0\' compile \'com.google.apis:google-api-services-oauth2:v2-rev7
It seems a dependency will not be excluded if there is another dependency somewhere that points to that same dependency without any of the excludes.
You can exclude a dependency through configuration however:
configuration
configurations { all*.exclude group: 'com.google.guava', module:'guava-jdk5' }