How to exclude kotlin version from duplicate classes error

Answered

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!

0
2 comments

Please report at https://youtrack.jetbrains.com/newIssue?project=KT with a small sample project to reproduce.

0
Avatar
Permanently deleted user

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!

0

Please sign in to leave a comment.