Closed binishmatheww closed 5 months ago
Thanks for this Issue. Can you please provide minimal reproducible sample project on GitHub?
@dima-avdeev-jb here's a failure in my smallish project due to this https://github.com/eygraber/vice/actions/runs/7893533731
Actually my error is slightly different (org.jetbrains.compose.collection-internal:collection
) and I'm using 1.6.0-rc01 but otherwise same concept.
Seeing the same thing in Tivi. The update to 1.6.0-rc01 is failing with:
Error: error: Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Users/runner/work/tivi/tivi, /Users/runner/.konan/klib, /Users/runner/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/common, /Users/runner/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/platform/ios_arm64]
Confirmed here as well after updating to rc01.
It happens because some library depends on 1.6.0-beta02
, which isn't binary compatible with 1.6.0-rc01
Looking at the dependencies of tivi
(gradlew shared:common:dependencies
), I found:
| +--- dev.chrisbanes.haze:haze:0.5.1
| | +--- org.jetbrains.compose.ui:ui:1.6.0-beta02 -> 1.6.0-rc01 (*)
@chrisbanes, will upgrading dev.chrisbanes.haze:haze:0.5.1
to Compose 1.6.0-rc01
or using the older version that depends on 1.5.12
help?
Ah makes sense. I'm about to upgrade Haze anyway 👌
EDIT: Just released Haze 0.5.2 which seems to have fixed things for consumers.
I had a similar situation with a dependency. Updated it and the error has gone away.
Hello I also have the same problem with 1.6.0-rc01 kotlin multiplatform when running ios in fleet IDE. I didn't have this problem with 1.6.0-beta02 and it happened when I updated it to 1.6.0-rc01.
error: Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Volumes/Aino/Aino, /Users/mohammad/.konan/klib, /Users/mohammad/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/common, /Users/mohammad/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/platform/ios_simulator_arm64]
Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Volumes/Aino/Aino, /Users/mohammad/.konan/klib, /Users/mohammad/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/common, /Users/mohammad/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/platform/ios_simulator_arm64]Compilation finished with errors
I also have the same problem with 1.6.0-rc01
The solution is to find the dependency that depend on 1.6.0-beta02
and downgrade it or ask the author of the library to upgrade it to 1.6.0-rc01
.
Added that to the CHANGELOG.
@dima-avdeev-jb I am also facing the same issue in KMM project
settings.kt plugins
plugins {
val firebaseCrashlyticsVersion = extra["firebase.crashlytics.version"] as String
val googleServicesVersion = extra["google.services.version"] as String
id("org.jetbrains.compose").version("1.6.0-rc01")
kotlin("jvm").version("1.9.20")
kotlin("multiplatform").version("1.9.20")
kotlin("android").version("1.9.20")
id("com.android.application").version("8.0.2")
id("com.android.library").version("8.0.2")
id("com.google.gms.google-services").version(googleServicesVersion).apply(false)
id("com.google.firebase.crashlytics").version(firebaseCrashlyticsVersion).apply(false)
}
@sureshmaidaragi1919
The solution is to find the dependency that depend on 1.6.0-beta02 and downgrade it or ask the author of the library to upgrade it
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
I am unable to build my KMP app for IOS. I am getting this error: Could not find "org.jetbrains.compose.annotation-internal:annotation" in [/Users/binishmathew/binishmatheww/Kadalas, /Users/binishmathew/.konan/klib, /Users/binishmathew/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/common, /Users/binishmathew/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.22/klib/platform/ios_simulator_arm64]
My common.gradle: import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
plugins { kotlin("multiplatform") id("com.android.library") id("kotlin-parcelize") kotlin("plugin.serialization") version "1.9.22" id("app.cash.sqldelight") id("dev.icerock.mobile.multiplatform-resources") id("org.jetbrains.compose") version "1.5.12" }
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class) kotlin { kotlin.applyDefaultHierarchyTemplate()
}
android { namespace = "x.y.z" compileSdk = 34 defaultConfig { minSdk = 23 } } dependencies { implementation(libs.androidx.annotation.jvm) }
sqldelight { databases{ create("xyz"){ packageName.set("x.y.z.sqldelight") verifyMigrations = true //dialect("app.cash.sqldelight:postgres-dialect:2.0.1") dialect("app.cash.sqldelight:sqlite-3-24-dialect:2.0.1") } } linkSqlite = true }
Affected platforms Select one of the platforms below:
Versions