Skip to content

[Bug]: Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.22.jar -> kotlin-stdlib-1.8.22 #7866

Open
@mattiLeBlanc

Description

@mattiLeBlanc

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1

Installed Dependencies:

@capacitor/ios: not installed
@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1

[success] Android looking great! 👌

Other API Details

npm 8.19.1
node: v20.14.0

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

I am trying to build my Angular Capacitor Project for Android and I am running in an error

Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.22.jar -> kotlin-stdlib-1.8.22 (org.jetbrains.kotlin:kotlin-stdlib:1.8.22) and kotlin-stdlib-jdk8-1.6.21.jar -> kotl
Image

I am pretty new to this and not really sure what to do.
I found this https://gist.github.com/danielcshn/7aa57155d766d46c043fde015f054d40 and tried adding the implementation line to my build.gradle (module) file but to no avail.

How do I fix this

Expected Behavior

Build the project

Project Reproduction

not possible

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions