Hey, I've just created a new KMM project. I'm tryi...
# multiplatform
p
Hey, I've just created a new KMM project. I'm trying to build the
iosApp
config through Android Studio. But I'm facing this error while building. Error Log: https://pastebin.com/qU8RwwXE
Kdoctor -v
Log: https://pastebin.com/sqqZF0cV Can anyone explain the error and help me resolve it?
1
v
Error log is not available - 404. Also, in KDoctor I see that your Java version is 1.8 (jdk1.8.0_202.jdk). I’d suggest bumping it up to Java 11. I’m running
java version "11.0.12" 2021-07-20 LTS
on all places. Just recently updated two mac machines Java version to this, because the project could not be built.
p
• Updated the link of 'Error Log', • Java version is updated at these places ◦ JAVA_HOME path variable ◦ Android Studio Gradle (to Embedded Java version which is by default is Java 11) Are there any other places left to update?
v
Probably not
p
Still not working then. One thing I've missed is creating an Apple account and adding it to the Xcode project to enable signing. Even after that, it failed
I did not have the Xcode properly setup. Do I need any setup in Xcode for the iOS project other than adding an apple account for signing?
v
Aaah.. Wait wait.
Java (openjdk version “11.0.13” 2021-10-19)
Don’t use OpenJDK. Historically, it causes a ton of issues. Use something from here: https://www.oracle.com/eg/java/technologies/javase/jdk11-archive-downloads.html
p
Oh Ok. Thanks! I'll try and will update you here.
It worked with Oracle JDK. Thanks for your help!