This is actually a problem that arises from several joda-time dependencies in your project.
To fix this, you must exclude any "duplicate" joda-time from any dependency in your project that contains a "duplicate" joda-time .
To find out which dependencies include "repeating" joda-time , use the ./gradlew app:dependencies ./gradlew app:dependencies to have the ./gradlew app:dependencies complete ./gradlew app:dependencies graph. Then browse through the list of dependencies and find those that include a "duplicate" joda-time . Then exclude joda-time from any dependency that includes its "duplicate". After that, your application will work fine.
An example of how to exclude joda-time from a dependency:
// An offending dependency that contains a duplicate joda-time. compile('com.some.project:some-module:0.1') { // Exclude joda-time from this dependency to remove the errors. exclude module: 'joda-time' }
This is the right way to handle dependency conflicts.
source share