Gradle NoClassDefFoundError XmlSlurper

If you getting this error:

NoClassDefFoundError: groovy/xml/XmlSlurper

while building your app through Gradle, most likely that means that some of your Gradle plugins are not compatible with your version of Gradle. Consider changing either Gradle to the appropriate version or a problematic Gradle plugin.

In my case, the latest com.github.ben-manes.versions plugin version was not compatible with my Gradle 6.x.

Telegram channel

If you still have any questions, feel free to ask me in the comments under this article or write me at

If I saved your day, you can support me 🤝