https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

John O'Reilly

09/01/2020, 2:41 PM
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
a

Arkadii Ivanov

09/01/2020, 2:48 PM
I had similar issue when using the following with gradle DSL: js { browser { } }
Faced this issue during migration to Kotlin 1.4.0
j

John O'Reilly

09/01/2020, 2:50 PM
thanks @Arkadii Ivanov....will ask reporters of issue to try that. @Sebastian Aigner is this something you've come across?
s

Sebastian Aigner

09/01/2020, 3:00 PM
Haven’t seen that before 👀 also tagging in @Ilya Goncharov [JB] who is probably also interested in this.
i

Ilya Goncharov [JB]

09/01/2020, 3:25 PM
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
a

Arkadii Ivanov

09/01/2020, 3:29 PM
@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.
i

Ilya Goncharov [JB]

09/01/2020, 4:06 PM
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
j

John O'Reilly

09/01/2020, 4:10 PM
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?
a

Arkadii Ivanov

09/01/2020, 4:15 PM
@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
j

John O'Reilly

09/01/2020, 4:26 PM
do you get same issue with KaMPKit....it's also using that plugin https://github.com/touchlab/KaMPKit/blob/master/shared/build.gradle.kts
a

Arkadii Ivanov

09/01/2020, 4:35 PM
I did not try opening the KaMPKit. Could try later today.