Duplicate Entry Error - Dependancy And Project Module Confliction - Android
First of all. Below is the error that I am getting. Now, What I am doing is like below.... I am integrating Speech To Text service of IBM. I have founded a demo HERE! I am also u
Solution 1:
I am not sure that it can work.
The issue happens because you are adding the same class (org/apache/commons/io/ByteOrderMark.class
) twice.
If you checking the pom file of the com.cloudant:cloudant-sync-datastore-android
library you will find this dependency:
commons-io:commons-io:2.4
In your speech-android-wrapper module you can:
- remove the
commons-io-2.4.jar
from the libs folder - change the dependencies in the build.gradle removing the line
compile files('libs/commons-io-2.4.jar')
and addingcompile commons-io:commons-io:2.4
Solution 2:
I found the solution, as one can exclude some group my following line.
configurations {
all*.exclude group: 'commons-io'
}
I have added above line error disappears.
Post a Comment for "Duplicate Entry Error - Dependancy And Project Module Confliction - Android"