Exclude xpp3 from smack for android

hi. i have the following dep. on my gradle file for my android app:
i constantly get the following warnings:

Warning:Dependency xpp3:xpp3:1.1.4c is ignored for debug as it may be conflicting with the internal version provided by Android.
So i checked it with gradle: gradle dependencies app:dependencies and discovered taht xpp3 is needed by smack for android in the dep tree. The warning says that is’ part of android.jar included in the project and there for not needed.
So i’ve decided to remove it. i’ve looked through the forum and saw this is probably the way to go:
exclude group:“xpp3”
but it doesn’t work, i still get the warnings and printing th dep tree i can still see the file.

Any other ideas ?

the problem was partially the android plugin.
for some reason compile() in a library project doesn’t apply itself to ALL configurations.
therefor the following saved me:
configurations {
all*.exclude group: ‘xpp3’, module: ‘xpp3’
//exclude the module from dependencies to ALL configurations