Umberto Pompei
09/12/2025, 8:45 AMehsan
09/12/2025, 8:58 AMkotlin_language_version = 2.0
sourceSets.configureEach {
languageSettings {
apiVersion = kotlin_language_version
languageVersion = kotlin_language_version
}
}
The I have updated almost all my dependencies to their latest and the gradle sync successfully but when I build/run the project I get the error below:
> Task :common:kspStagingMyAppDebugKotlinAndroid FAILED
e: -api-version (2.0) cannot be greater than -language-version (1.9)
I can add the stack trace if needed!Slackbot
09/12/2025, 9:28 AMMarkRS
09/12/2025, 6:42 PMSagar Khurana
09/12/2025, 8:10 PMBug Report
iOS Compilation Failure with ModalBottomSheet Components
IR lowering fails during iOS compilation with "Collection contains more than one matching element" error when using ModalBottomSheet components with complex nested composables. Android compilation works without issues.Matti Zaaremba
09/12/2025, 8:54 PMv79
09/13/2025, 7:17 AMorg.jetbrains.androidx.navigation:navigation-compose:2.9.0-beta05
without any luck. Gemini agent went with Voyager, but the code it wrote wouldn't even compile. And I am reading that there's a new alpha Navigation 3 from Google?Jimmy Nelle
09/13/2025, 9:02 AMUncaught Kotlin exception: kotlin.native.internal.IrLinkageError: Can not get instance of singleton 'System': No class found for symbol 'kotlinx.datetime/Clock.System|null[0]'
More in 🧵John Safwat
09/14/2025, 1:20 PMAdam Hill
09/14/2025, 7:46 PMMatti Zaaremba
09/15/2025, 6:41 AMBao Le Duc
09/15/2025, 8:06 AMNSBundle.allBundles.filterIsInstance<NSBundle>().forEach { bundle ->
val path = bundle.pathForResource("config", "json")
if (path != null) {
return NSString.stringWithContentsOfFile(
path = path,
encoding = NSUTF8StringEncoding,
error = null
) as String? ?: throw IllegalStateException("Failed to read file")
}
}
It seems that the file wasn’t copied into iOS bundle. I’m not using https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-resources.html because I don’t use Compose Multiplatform in the app
Please helpGeorgeS-Litesoft
09/15/2025, 9:13 PMimport io.mockative.mock
import io.mockative.of
I have tried everything that ChatGPT suggests...
My build.gradle.kts:
plugins {
kotlin("jvm") version "2.2.0"
id("com.google.devtools.ksp") version "2.2.0-2.0.2" // KSP for Kotlin 2.2.0
id("io.mockative") version "3.0.1"
}
group = "io.isgi"
version = "1.0-SNAPSHOT"
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1")
implementation("io.mockative:mockative:3.0.1")
kspTest("io.mockative:mockative-processor:3.0.1")
testImplementation(kotlin("test")) // kotlin.test API
testImplementation(kotlin("test-junit5")) // engine binding
}
tasks.test { useJUnitPlatform() }
kotlin { jvmToolchain(21) }
My gradle.properties:
kotlin.code.style=official
#KSP
ksp.useKSP2=true
My setting.gradle.kts:
rootProject.name = "kotlinNativeUtilsLib"
pluginManagement {
repositories {
gradlePluginPortal()
google() // <-- needed so Gradle can find AGP for the Mockative plugin
mavenCentral()
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
Anybody see the problem or can share a repo?
Thx, GeorgeAlbilaga
09/16/2025, 2:57 AMferdialif02
09/16/2025, 4:20 AMGrigory
09/16/2025, 1:20 PMRavi
09/16/2025, 2:06 PMMarkRS
09/16/2025, 2:28 PMalexandre mommers
09/16/2025, 10:07 PMMario
09/16/2025, 10:37 PMRavi
09/17/2025, 3:34 AMGautam Shorewala
09/17/2025, 5:46 AMshared
and payment
.
I want to publish only the shared
module as a Maven artifact and have the payments
module included inside it so that when my consumer adds the shared
dependency, payments
is available too.
Currently, shared
depends on payments
via implementation(project(":shared:payments"))
in commonMain
. When I publish just shared
and use it in my consumer app, I get errors like:
Could not find ProjectName.shared:payments:unspecified.
is there a way to package payments
inside shared
, so only one artifact needs to be published?Sagar Khurana
09/17/2025, 12:57 PMException in thread "main" java.lang.Error:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/usr/in
clude/DarwinFoundation1.modulemap:288:8:
error: module '_c_standard_library_obsolete' requires feature
'found_incompatible_headers__check_search_paths'
Cascade Failures:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System
/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:23:10:
fatal error: could not build module '_Builtin_float'
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System
/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10:
fatal error: could not build module 'CoreFoundation'
Stack Location:
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:80)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:567)
at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop(main.kt:101)
This appears to be a Kotlin Native incompatibility with the beta iOS SDK 26.0, Any guidance will be appreciated!Roger Kreienbühl
09/17/2025, 2:21 PMMax
09/17/2025, 3:02 PMGhasem Shirdel
09/17/2025, 5:41 PMSoumen pal
09/18/2025, 6:12 AMAchal Vishnoi
09/18/2025, 7:09 AMLeonhard Solbach
09/18/2025, 1:52 PMPaulo Cereda
09/18/2025, 5:37 PMcommonTest
. Recently, I noticed that I inadvertedly used JVM-specific code in one of those tests (namely, File
and readText()
. Although the tests run without any issues, I think I should move them to jvmTest
instead because it uses non-common code. Is this the correct way to go, or should I keep this scenario as-is? Thanks!