I read this comment in the Gradle docs:
To deal with problems due to version conflicts, reports with dependency graphs are also very helpful. Such reports ar
gradlew -q :app:dependencies > dependencies.txt
Will write all dependencies to the file dependencies.txt