JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.42k stars 1.12k forks source link

Could not find "org.jetbrains.compose.collection-internal:collection" #4641

Closed hafiz013 closed 2 months ago

hafiz013 commented 2 months ago

Describe the bug

Task :composeApp:compileKotlinIosSimulatorArm64 FAILED error: Could not find "org.jetbrains.compose.collection-internal:collection" in [/Users/mohdhafiz/Downloads/AssetManagementSystem, /Users/mohdhafiz/.konan/klib, /Users/mohdhafiz/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/common, /Users/mohdhafiz/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.21/klib/platform/ios_simulator_arm64] error: Compilation finished with errors

FAILURE: Build failed with an exception.

Note: I suspect after update jetpack compose plugin 1.6.0 this error come out.

Affected platforms

Versions

To Reproduce Steps and/or the code snippet to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Expected behavior Should smoothly when run iosApp

terrakok commented 2 months ago

Could you provide a reproducer for the problem? (And describe versions more accurately)

MatkovIvan commented 2 months ago

https://github.com/JetBrains/compose-multiplatform/issues/4277#issuecomment-1945922199

terrakok commented 2 months ago

duplicates https://github.com/JetBrains/compose-multiplatform/issues/4277

hafiz013 commented 2 months ago

@terrakok the error that point out not same as me, how?

terrakok commented 2 months ago

The error is Could not find "org.jetbrains.compose.annotation-internal:annotation". The fix is to find a dependency with unsupported version of the compose. If you think it is a different case then provide a more detailed information and a reproducer, please 👍

hafiz013 commented 2 months ago

actually what does mean error "org.jetbrains.compose.collection-internal:collection" vs "org.jetbrains.compose.annotation-internal:annotation"? @terrakok

terrakok commented 2 months ago

Actually, it doesn't matter. The issue is in a wrong transitive dependency between native targets. Because libraries with Kotlin Native targets maybe incompatible between dev versions.

hafiz013 commented 2 months ago

because like my case build success but when running composeApp in Android (ok) but in Ios (not ok). Can i share my whole project to you by email @terrakok ? Could u please can get u email please. tq

terrakok commented 2 months ago

Before that, could you share the output of ./gradlew :composeApp:dependencies > dep.txt?

hafiz013 commented 2 months ago

attachment above that you requested. dep.txt

terrakok commented 2 months ago

Where is Compose Multiplatform 1.6.2? I see org.jetbrains.compose.foundation:foundation:1.6.0-alpha01 -> 1.6.0-beta01

terrakok commented 2 months ago

Try to create a new project with the same dependencies as you have to reproduce the issue and post the project here

hafiz013 commented 2 months ago

@terrakok i did test with 1.6.2 during time i do reporting this issue but same problem. so i try redo back original 1.6.0-beta01 but still same problem. Can I get your email please? This is because my project so easy that can trigger error. It error when run iosApp when try to install.

okushnikov commented 10 hours ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.