Skip to content

Using a Kotlin version below 2.1.20 causes weird exception #38

@Olivki

Description

@Olivki

I have a multiplatform project with a dependency like this api(project(":other_module")), and with Kotlin version 2.1.10 Gradle fails with java.lang.NoSuchMethodError: 'org.gradle.api.artifacts.ProjectDependency org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler.project(java.lang.String)'.

The issue is resolved when switching the version to 2.1.20. It might be desirable to see if a better error message could be provided, something like "version 2.1.20 is required".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions