Dependency Tree Explanation

I’m new to Android and Java and I am having problems with running my app. I"m unsure but I think this is a dependency problem where there are duplicate packages and the wrong packages are being pointed to leading to DexArchiveBuilderException. I have tried posting on stackoverflow but no one has answered. Can someone here take a look please?

StackOverflow Post