Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found

Asked on June 22, 2023
I am creating Android application using Java and Android Studio - Flamingo 2022.

I am getting kotlin error, why?

Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.20 (org.jetbrains.kotlin:kotlin-stdlib:1.8.20) and kotlin-stdlib-jdk8-1.6.21 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21)

Replied on June 22, 2023
Provide dependencies of kotlin-stdlib and kotlin-stdlib-jdk8 with same version in your build.gradle.

Here I am using both library with 1.8.22 version.

dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.22'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22'

Replied on June 22, 2023
Nice. It is working.

Replied on July 14, 2023
Resolveu para mim. Muito grato! Tudo de bom para vocĂȘ

Write Answer

©2024 concretepage.com | Privacy Policy | Contact Us