Error : all package the same library

Since upgrading from Gradle 3.x to 4.6 In 2 (sub)modules I have a dependency on the same library with the same version.
while building I get the error:

    at org.gradle.internal.concurrent.ManagedExecutorImpl$
Caused by: org.gradle.api.GradleException: [:feature_match, :feature_team] all package the same library [com.github.PhilJay:MPAndroidChart].

        at org.gradle.internal.reflect.JavaMethod.invoke(
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(

What does this error mean? I should be allowed to have dependencies on the same library from different modules. It always used to work like that.

Is there somekind of list of possible errors gradle can output?

1 Like

i have same error. any solution u found