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

Zsolt Bencze

10/20/2023, 1:41 PM
Can I use the 0.8.0 multiplatform plugin with Kotlin 1.9.10/AGP 8.1.0/gradle 8.4/JDK 17? I seem to get an error:
org/jetbrains/kotlin/gradle/plugin/mpp/pm20/KotlinCompilationData
(I assume that comes from the multiplatform plugin)
p

p-schneider

10/20/2023, 3:37 PM
0.8.0 should work with these versions, I don't see Issues in my local project with the same versions of Ktlin SGP Gradle. (Not sure about JDK in my case though, I have both JDK 11 and JDK 17 (and JDK 21) installed, so I'm not sure if JDK 17 is used for everything.) Do you also have issues when running gradle on console? (Since the multiplatform plugin is an IDE plugin I would assume compile errors etc. most likely do not come from the IDE plugin but somewhere in the gradle build.)
👀 1
z

Zsolt Bencze

10/20/2023, 4:15 PM
I also get this
ksp-1.8.10-1.0.9 is too old for kotlin-1.9.10. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.8.10.
🤔 I don't set KSP directly, so it might come in as a transitive dependency by another library or plugin. AStudio terminal:
Copy code
./gradlew --version

------------------------------------------------------------
Gradle 8.4
------------------------------------------------------------

Build time:   2023-10-04 20:52:13 UTC
Revision:     e9251e572c9bd1d01e503a0dfdf43aedaeecdc3f

Kotlin:       1.9.10
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          17.0.9 (Homebrew 17.0.9+0)
OS:           Mac OS X 13.6 aarch64
and scan
Copy code
./gradlew build --scan

ksp-1.8.10-1.0.9 is too old for kotlin-1.9.10. Please upgrade ksp or downgrade kotlin-gradle-plugin to 1.8.10.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':library:core'.
> Failed to notify project evaluation listener.
   > org/jetbrains/kotlin/gradle/plugin/mpp/pm20/KotlinCompilationData

2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@65e9429a of type BuildFlowService.Parameters
   > A problem occurred configuring project ':library:core'.
      > Failed to notify project evaluation listener.
         > org/jetbrains/kotlin/gradle/plugin/mpp/pm20/KotlinCompilationData
So it's the same result as I get from the IDE.
Looks like it was related to the
id("org.kodein.mock.mockmp") version "1.13.0"
plugin version, 1.15.0 seems to work fine. At least it clears this part of the build process. Thanks for your help Philipp.
👍 1
p

p-schneider

10/20/2023, 4:40 PM
(Sorry I didn't reply earlier, I'm not at my PC right now. Good to hear you've figured that part out.)
I'm also using kodein in my project but I didn't know about kodein mockmp, so thank you for that hint. Maybe I'll start using that plugin as well.
z

Zsolt Bencze

10/20/2023, 4:43 PM
Nice! Glad to be of service!
33 Views