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
16.35k stars 1.18k forks source link

KLIB resolver: Could not find "org.jetbrains.compose.annotation-internal:annotation" #4961

Closed KhubaibKhan4 closed 2 months ago

KhubaibKhan4 commented 5 months ago

Describe the bug Getting this error while running the iosApp from the Android Studio: KLIB resolver: Could not find "org.jetbrains.compose.annotation-internal:annotation".

I'm unable to resolve this issue. I'm facing this issue on many of my projects.

Affected platforms

Versions

Expected behavior When I try to run to it, it should run and launch the app but I get this issue: e: KLIB resolver: Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Users/zohaibkhan/Downloads/Youtube-Clone-KMP-master 9, /Users/zohaibkhan/.konan/klib, /Users/zohaibkhan/.konan/kotlin-native-prebuilt-macos-x86_64-2.0.0/klib/common, /Users/zohaibkhan/.konan/kotlin-native-prebuilt-macos-x86_64-2.0.0/klib/platform/ios_simulator_arm64]

Screenshots iosApp-Error

Additional context The error that I mentioned above occours when i try to launch iosApp from the Android Studio but when I try to open the application from the xocde, I get error : No Such Module 'ComposeApp'

KhubaibKhan4 commented 5 months ago

I forget to add few of my projects where I'm facing this issue:

YouTube Clone KMP: https://github.com/KhubaibKhan4/Youtube-Clone-KMP Flexi-Store-KMP: https://github.com/KhubaibKhan4/Flexi-Store-KMP Mind in Motion: https://github.com/KhubaibKhan4/MindinMotion-KMP

okushnikov commented 4 months ago

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

Kashif-E commented 3 months ago

@KhubaibKhan4 were you able to resolve this?

KhubaibKhan4 commented 3 months ago

Yes. In the latest updates, It's working fine. Basically I was using old versions of some libraries. Make sure to use the latest version.

KhubaibKhan4 commented 3 months ago

And in some cases, We get this issues due to brew installation with not completed packages. I still get these issues sometimes. Do you have any suggestions about it? @Kashif-E