How to solve android build already added exception
When we build android application , sometimes we got xxx already added exception ,and this is an
example to show how to solve it.
1. The exception
When we build the app, and then we got this:
2. The solution
You can just do as follows:
Use maven dependency tree to check which depends on the commons-logging, the command:
find the objects that depend on the commons-logging, then add this to pom.xml
As the code shown, I add an exclusion on the artifact that has transitive dependency on the commons-logging. And you must
also copy the exclusion code to all the other artifacts that have the same transitive dependencies on the commons-logging.
You can find detail documents about the android here: