I have this issue with Text Input in CMP where an ...
# compose-ios
r
I have this issue with Text Input in CMP where an input like this
Copy code
var title by remember { mutableStateOf("") } 
BasicTextField(title, onValueChange = { title = it })
throws an exception when touched i.e trying to enter text here is part of the exception
Copy code
Uncaught Kotlin exception: kotlin.internal.IrLinkageError: Abstract property accessor 'text.<get-text>' is not implemented in non-abstract anonymous object
    at 0   Market.debug.dylib                  0x1071b154b        kfun:kotlin.Throwable#<init>(kotlin.String?){} + 99
    at 1   Market.debug.dylib                  0x1071ab707        kfun:kotlin.Error#<init>(kotlin.String?){} + 95
    at 2   Market.debug.dylib                  0x1071e43d7        kfun:kotlin.internal.IrLinkageError#<init>(kotlin.String?){} + 95
    at 3   Market.debug.dylib                  0x1071e448b        kfun:kotlin.internal#throwIrLinkageError(kotlin.String?){}kotlin.Nothing + 163
    at 4   Market.debug.dylib                  0x107df36c7        kfun:androidx.compose.foundation.text.input.internal.createLegacyPlatformTextInputServiceAdapter$1.createLegacyPlatformTextInputServiceAdapter$1$makeRequest$textEditorState$1.<get-text>#internal
This is a new project with these dependencies
Copy code
...
composeMultiplatform = "1.11.1"
junit = "4.13.2"
kotlin = "2.4.10"
material3 = "1.11.0-alpha07"
...
a
Hi! Most likely you have misalignment in versions between different libraries of Compose Multiplatform. Check the version of
compose:foundation:foundation
and other parts, like
compose:ui:ui-text
and
compose:ui:ui
. Probably, you need to use a different version of Material3 library.
r
Hi @Andrei Salavei, thank you very much. my material3 version was wrong. I fixed it and it's working now.
🎉 1