dbaroncelli / D-KMP-sample

D-KMP Architecture official sample: it uses a shared KMP ViewModel and Navigation for Compose and SwiftUI apps.
Apache License 2.0
774 stars 87 forks source link

D-KMP-sample gradle sync issue org.jetbrains.kotlin.konan.target.KonanTarget$IOS_ARM32 #31

Closed mylockerbiz closed 2 weeks ago

mylockerbiz commented 3 weeks ago

When i unzipped and loaded the project i get an error on the Gradle Sync

java.lang.ExceptionInInitializerError (no error message)

org.jetbrains.kotlin.konan.target.KonanTarget$IOS_ARM32

I searched for any reference, but there is none. I removed all the iOS references in the project, still the error.

I don't see the connection. composeApp-build.gradle.txt project-build.gradle.txt shared-build.gradle.txt

mylockerbiz commented 3 weeks ago

also, the build_gradle.kts for shared and composeApp are showing this. the settings do not allow for configuring Kotlin. image

using this Android Studio Android Studio Jellyfish | 2023.3.1 Patch 1 Build #AI-233.14808.21.2331.11842104, built on May 14, 2024 Runtime version: 17.0.10+0--11572160 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 4 Registry: ide.instant.shutdown=false ide.balloon.shadow.size=0 ide.experimental.ui=true Non-Bundled Plugins: com.jetbrains.kmm (0.8.2(233)-8) org.jetbrains.compose.desktop.ide (1.6.2)

dbaroncelli commented 3 weeks ago

I have just upgraded the sample to Kotlin 2.0. Try to pull the new code and clean your project. I have tested it on Intellij IDEA Community Edition and it works.

mylockerbiz commented 3 weeks ago

Will do tonight. Thanks so much.

On Fri, Jun 14, 2024, 11:53 AM dbaroncelli @.***> wrote:

I have just upgraded the sample to Kotlin 2.0. Try to pull the new code and clean your project. I have tested it on Intellij IDEA Community Edition and it works.

— Reply to this email directly, view it on GitHub https://github.com/dbaroncelli/D-KMP-sample/issues/31#issuecomment-2168420152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNM7LBOV7VDIK3ZJ24DTQ3ZHMNZJAVCNFSM6AAAAABJKLDINWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGQZDAMJVGI . You are receiving this because you authored the thread.Message ID: @.***>