ymaskin
11/25/2025, 2:49 PMmarkturnip
11/27/2025, 9:30 AMDamjan Miloshevski
11/27/2025, 11:36 AMpablisco
11/27/2025, 12:40 PMBhadra Vaghela
11/27/2025, 1:36 PMBrill
11/27/2025, 2:46 PMStylianos Gakis
11/27/2025, 3:23 PMkotlinx.datetime.toJavaLocalDate which comes from inside kotlinx.datetime, which is defined in the jvm target.
If I have the android and the jvm source sets separately, each one of them can import this function and just use it, no problem. However if I make a new sourceset like:
applyDefaultHierarchyTemplate()
val jvmAndAndroidMain by creating {
dependsOn(commonMain.get())
}
jvmMain.get().dependsOn(jvmAndAndroidMain)
androidMain.get().dependsOn(jvmAndAndroidMain)
it is not resolved since as I understand it can't figure out that both those targets are supposed to be able to call the jvm target of the kotlinx.datetime library.
Perhaps there might be a way to make this happen by not using the applyDefaultHierarchyTemplate and doing something more custom?Mikolaj
11/27/2025, 6:06 PMKaren Frangulyan
11/27/2025, 8:41 PMJack Boyce
11/27/2025, 11:21 PMDaria Voronina [JB]
11/28/2025, 8:38 AMMichal Klimczak
11/28/2025, 9:00 PMw: Xcode Version Too High for Kotlin Gradle Plugin despite kotlin 2.2.20 🧵Jeremie D
11/29/2025, 12:08 AMMichal Klimczak
11/29/2025, 9:57 AMMelika
11/29/2025, 1:30 PMJonathan
11/30/2025, 2:24 AMSoumen pal
12/01/2025, 6:15 AMBartosz Markowski
12/01/2025, 10:04 AM@Preview i get
java.lang.IllegalStateException: No NavigationEventDispatcher was provided via LocalNavigationEventDispatcherOwner
at androidx.navigationevent.compose.NavigationEventHandlerKt.NavigationEventHandler(NavigationEventHandler.kt:82)
at androidx.navigationevent.compose.NavigationEventHandlerKt.NavigationBackHandler(NavigationEventHandler.kt:148)
at androidx.navigation3.ui.NavDisplayKt__NavDisplayKt.NavDisplay(NavDisplay.kt:296)
at androidx.navigation3.ui.NavDisplayKt.NavDisplay at androidx.navigation3.ui.NavDisplayKt__NavDisplayKt.NavDisplay(NavDisplay.kt:208)
at androidx.navigation3.ui.NavDisplayKt.NavDisplay at lol.omg.bartek.zdrowko.AppKt$App$1$2.invoke(App.kt:63)
I tested androidx.compose.ui.tooling.preview.Preview and import androidx.compose.ui.tooling.preview.Preview both gives same error. Some ideas how can I fix thatTheLegend
12/01/2025, 11:40 AMTomáš Procházka
12/01/2025, 10:41 PMIsmail BENABDALLAH
12/02/2025, 10:17 AMKMP/CMP project, I have a module that contains resources (images and strings) correctly placed in the composeResources folder.
This module is declared as a library using the com.android.kotlin.multiplatform.library plugin.
When I run the application, it crashes with the following error:
Missing resource with path: composeResources/com.myaproject.resources/drawable/compose-multiplatform.xml
However, if I replace the com.android.kotlin.multiplatform.library plugin with the com.android.library plugin, everything works fine.
Do you have an explanation for this behavior? Could I be missing a specific configuration related to the KMP/CMP plugin or to resource handling in this setup?Damjan Miloshevski
12/02/2025, 1:07 PMio.insert-koin:koin-compose-viewmodel should be in the commonMain source set but for some reason the build fails with the below error
KMP Dependencies Resolution Failure
Source set ‘appleMain’ couldn’t resolve dependencies for all target platforms
Couldn’t resolve dependency ‘io.insert-koin:koin-compose-viewmodel’ in ‘appleMain’ for all target platforms.
The dependency should target platforms: [iosArm64, iosSimulatorArm64]
Unresolved platforms: [iosArm64, iosSimulatorArm64]
Run the build with ‘--info’ for more details.
Solution: Make sure you are using a dependency that targets all required platforms or move your dependency and relevant code to a more applicable source set: <https://kotl.in/57b2-source-set-dependencies>Soumen pal
12/02/2025, 1:22 PM.onKeyEvent { event ->
println("Key pressed: ${event.key}")
val didPressDelete = event.key == Key.Delete || event.key == Key.Backspace || event.key == Key.Back
if (didPressDelete && number == null) {
onKeyboardBack()
}
false
},Harilal Sah Kanu
12/02/2025, 1:43 PMJeremie D
12/02/2025, 7:27 PMstringResource(Res.string.mystring) it won't generate the preview, maybe my config is just bad?GeorgeS-Litesoft
12/03/2025, 5:04 PMksp.useKSP2=true
build.gradle.kts:
kotlin("jvm") version "2.2.0"
id("com.google.devtools.ksp") version "2.2.20-2.0.4" // KSP for Kotlin 2.2.0
ChatGPT just told me that default methods in interfaces is not supported in Kotlin "native" code.
While I currently have one default method in an interface, I can remove it, if I need to, and then won't create any more!
So, my question: Is ChatGPT wrong, and default methods in interfaces are supported?iQQator
12/03/2025, 10:49 PMMartin Feldsztejn
12/04/2025, 1:08 AMIcons library to get most icons, this is all nice and well, but it runs into issues when some of the composables are implemented natively. In my case I have a Map, and I've had to implement an expect fun MapView() that has 3 `actual`s (Android with GoogleMaps Compose, WasmJs with a JsExternal bridge, and iOS using the native MapKit). What I'm now trying to do, is change the icons of the markers to anything but the default, but because the implementations are native, I obviously can't use Icons or even Res..
What is the suggested way to do this?Jeremie D
12/04/2025, 2:12 PMandroidTarget + separate android {} block. The newer androidLibrary DSL has this instrumentation bug with resources. i keep switching back and forth, get issues, ai tells me to switch to the other one again... or the third option ive been trying to use is "com.android.kotlin.multiplatform.library"Andrew Stratton
12/04/2025, 3:03 PM<div data-quando-block-type="media-text" class="quando-block"
data-quando-javascript="quando.text($(eq$,${txtval}$,input$,'${text}'$,${txtval})$,${append},${newline})">
<div class="quando-left quando-media"></div>
<div class="quando-right">
<div class="quando-row quando-media">
<span class="iconify">abc</span>
<select data-quando-name="append" class='quando-toggle'>
<option value="false">Show</option>
<option value="true">Add</option>
</select>
Text
<span data-quando-toggle='txtval=input'>
"<input data-quando-name="text" type="text" value=""
data-quando-encode='normal' />"
</span>
<select data-quando-name='newline' class='quando-toggle'>
<option value='false'> </option>
<option value='true'>⤶</option>
</select>
<!-- + options removed -->
</div>
</div>
</div>
At present I just paste the html into the relevant div - but this won't work for compose. Hot reload 'could' do this but is an IDE feature - so not suitable for separate builds.
Note that there are 200+ blocks at present, so a switch statement would be a maintenance nightmare...I could put them all in a list and iterate through - but that seems smelly...
Thank you in advance - Andy