Hey everyone, Tony here. I am totally new to the c...
# community-support
t
Hey everyone, Tony here. I am totally new to the community but it's nice to be here! I ran into a problem that I cannot get around when developing in Kotlin Multiplatform. I ran into this error when I would like to sync the project with gradle files in Android Studio:
java.lang.ExceptionInInitializerError (no error message)
> org.jetbrains.kotlin.konan.target.KonanTarget$IOS_ARM32
(or in another form):
Exception java.lang.ArrayStoreException: org.jetbrains.kotlin.konan.target.KonanTarget$IOS_ARM32 [in thread "Daemon worker"]
I don't see any ios_arm32 in my code base that could affect this. Even suppressing ios_arm32 in the build.gradle.kts deliberately did not help. This error has prevented the gradle wrapper to build successfully. I have tried to play around with versions of dependencies, clear the cache, delete those build folders and let them rebuild, etc. I think I have exhausted everything that I know so far but the problem persists. It would be great if anyone could share some insights or advice on how to proceed, many thanks in advance!
v
If it happens only during sync but not while executing the build from commandline, would indicate it is an IDE problem eventually, not a Gradle problem. Can you share a build
--scan
URL of the failure? You can enable build scans via code so that it is also produced for the sync.
t
Hey thanks a lot for the reply! It turns out this was caused by some dependency version conflict/inconsistency and it was solved after I reinforced a centralized version specification. The suggestion to use
--scan
is very helpful!
๐Ÿงต 1
๐Ÿ‘Œ 1