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$1.run(ManagedExecutorImpl.java:46)
        at 
 org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.GradleException: [:feature_match, :feature_team] all package the same library [com.github.PhilJay:MPAndroidChart].

    at com.android.build.gradle.internal.tasks.CheckMultiApkLibrariesTask.taskAction(CheckMultiApkLibrariesTask.kt:86)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)

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