Trying to setup the Compose Multiplatform project ...
# multiplatform
k
Trying to setup the Compose Multiplatform project on a different laptop and facing build issues for iOS. Android is fine. Logs in 🧵
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/Users/ksharma/.gradle/wrapper/dists/gradle-8.13-all/54h0s9kvb6g2sinako7ub77ku/gradle-8.13/lib/native-platform-0.22-milestone-28.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
Type-safe project accessors is an incubating feature.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Krail'.
> Could not read workspace metadata from /Users/ksharma/.gradle/caches/8.13/kotlin-dsl/scripts/3406dc6ad5d03ef43b30b335ea34cb34/metadata.bin
error log
I have tried gradle cache clear and start again but the issue still exists. Not sure what other options to try.
t
@Andrey Yastrebov could you help here?
🙏 1
a
@Karan Sharma can you provide a minimal reproducer?
👍 1
k
Adding this line to gradle.properties helped get around the issue.
Copy code
kotlin.native.cacheKind=none