John O'Reilly

    John O'Reilly

    2 years ago
    A number of folks are having issues opening PeopleInSpace project in Android Studio on linux....anyone else come across this or know what cause might be? https://github.com/joreilly/PeopleInSpace/issues/8
    Arkadii Ivanov

    Arkadii Ivanov

    2 years ago
    I had similar issue when using the following with gradle DSL: js { browser { } }
    Faced this issue during migration to Kotlin 1.4.0
    John O'Reilly

    John O'Reilly

    2 years ago
    thanks @Arkadii Ivanov....will ask reporters of issue to try that. @Sebastian Aigner is this something you've come across?
    s

    Sebastian Aigner

    2 years ago
    Haven’t seen that before 👀 also tagging in @Ilya Goncharov [JB] who is probably also interested in this.
    Ilya Goncharov [JB]

    Ilya Goncharov [JB]

    2 years ago
    As I can see, in this particular sample, during compilation of
    kts
    resolved
    kotlin
    extension is not from our Gradle plugin, but from
    buildSrc
    which consider only
    KotlinMultiplatformExtension
    type, but not
    KotlinJsPlatformExtension
    which should be considered inside kotlin js plugin I mean this function in
    buildSrc
    Arkadii Ivanov

    Arkadii Ivanov

    2 years ago
    @Ilya Goncharov [JB] Also was thinking about this. Tried disabling this and the issue was still there.
    In my case I had additional errors, like
    kotlin
    was unresolved for
    Project
    Just tried by myself, got the error, the suggested fix does not help.
    Ilya Goncharov [JB]

    Ilya Goncharov [JB]

    2 years ago
    Maybe it is related with
    kotlin-dsl
    on root project, honestly see this kind of errors first time And seems that something with class loading in Gradle is broken in this cases
    John O'Reilly

    John O'Reilly

    2 years ago
    the PeopleInSpace repo at least is using root
    build.gradle
    now due to issue in AS 4.9 canary 8 (https://issuetracker.google.com/issues/166468915 )....but using
    build.gradle.kts
    elsewhere in project.....
    @Arkadii Ivanov just to confirm.....you're also just seeing this on linux?
    Arkadii Ivanov

    Arkadii Ivanov

    2 years ago
    @John O'Reilly Disabling the
    cocoapods
    plugin and its configuration solves the error.
    Moving the line
    id("org.jetbrains.kotlin.native.cocoapods")
    up and down inside the
    plugins
    block did not help
    John O'Reilly

    John O'Reilly

    2 years ago
    do you get same issue with KaMPKit....it's also using that plugin https://github.com/touchlab/KaMPKit/blob/master/shared/build.gradle.kts
    Arkadii Ivanov

    Arkadii Ivanov

    2 years ago
    I did not try opening the KaMPKit. Could try later today.