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

Nikita Khlebushkin

03/09/2020, 3:11 PM
After updating to 1.3.70 I cannot build a project from Xcode, the error is
Copy code
BUILD FAILED in 1m 19s
16 actionable tasks: 9 executed, 7 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Metaspace
Rollback to 1.3.61 solves the problem, although I wanted to use 1.3.70
k

kpgalligan

03/09/2020, 3:13 PM
If you have libraries, you probably need to update them to 1.3.70 versions
n

Nikita Khlebushkin

03/09/2020, 3:17 PM
I don't think I do
All my dependencies look like this
Copy code
implementation(kotlin("stdlib-common"))
My understanding is that they match the version of kotlin automatically, am I correct?
s

Sam

03/09/2020, 3:25 PM
Do you depend on kotlinx-coroutines or kotlinx-serialization for instance? Those need to be bumped up to 1.3.4 and 0.20 respectively. If you’re depending on ktor, that hasn’t been updated yet and you’ll need to stick to 1.3.61 until it is.
👆 1
k

kpgalligan

03/09/2020, 3:27 PM
If no dependencies, I think you’d need to share more of your config and more error info. I’ve definitely never seen that.
n

Nikita Khlebushkin

03/09/2020, 11:56 PM
I didn't use any kotlinx-* dependencies, but I've found a solution
Copy code
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
in gradle.properties solved it just fine for me. I actually suspect Gradle 6.2.2, which I bumped along with Kotlin, because now it all works with 1.3.70 and Gradle downgraded to 5.6.1
5 Views