Skip to content

Gradle failure in Android Studio: KonanLibrary_Decorated cannot be cast to KonanBuildingConfig #26

@J-Rojas

Description

@J-Rojas

When loading the project into Android Studio, the build fails to compile the clients/android project.

I'm using Kotlin Gradle plugin v1.2.21.

Error:Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/jrojas/work/JetBrains/kotlinconf-spinner/kotlin-
native/samples/fullstack/clients/android/build.gradle' line: 55

* What went wrong:
A problem occurred evaluating project ':clients:android'.
> org.jetbrains.kotlin.gradle.plugin.KonanLibrary_Decorated cannot be cast to org.jetbrains.kotlin.gradle.plugin.KonanBuildingConfig

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

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