I try to remove transitive dependencies from my Android project, and for some reason excludedoes not work when I try to remove a dependency from my specific dependency.
For example, I want to remove support-annotationsfrom my project
if i use
configurations {
all*.exclude group: 'com.android.support', module:'support-annotations'
}
Dependency gets excluded from the dependency tree. I can see the dependency tree with. / gradlew app: dependencies
But if I use
compile('com.android.support:support-v4:23.4.0')
{
exclude group: 'com.android.support', module:'support-annotations'
}
Then I still see the dependency in the dependency tree. 
So my question is why it does not work when I try to remove a dependency on a specific dependency?
Update 1:
- , star (*) ?
2
Fresco Fresco exclude
Fresco

, imagepipeline-base Fresco
compile("com.facebook.fresco:fresco:0.9.0")
{
exclude group: 'com.facebook.fresco', module: 'imagepipeline-base'
}

, imagepipeline-base . , Android-.