How to exclude kotlin version from duplicate classes error
I am using the kotlin lets plot api, which works 100% on jupyter and in standalone apps,
however I'm trying to use it on an android app and at the moment to build I get a bunch of errors that say like this
Duplicate class kotlin.ArrayIntrinsicsKt found in modules jetified-kotlin-stdlib-1.3.72.jar (org.jetbrains.kotlin:kotlin-stdlib:1.3.72) and jetified-lets-plot-common-1.3.1.jar (org.jetbrains.lets-plot:lets-plot-common:1.3.1)
and
Duplicate class org.jetbrains.annotations.TestOnly found in modules jetified-annotations-13.0.jar (org.jetbrains:annotations:13.0) and jetified-lets-plot-common-1.3.1.jar (org.jetbrains.lets-plot:lets-plot-common:1.3.1)
I understand that I have to choose only one of the libraries to be compiled, but if I remove lets-plot from the grtadle the project renders unusable
My question is:
Can I remove 'org.jetbrains.kotlin:kotlin-stdlib:1.3.72' and 'org.jetbrains:annotations:13.0' safely? and If so, how can I do this?
Thanks in advance!
Please sign in to leave a comment.
Please report at https://youtrack.jetbrains.com/newIssue?project=KT with a small sample project to reproduce.
Thanks for the reply, I've already opened a report at:
https://youtrack.jetbrains.com/issue/KT-39737
I've also aded a sample project.
Thanks!