Hi all, Can anybody help me fix this issue in a c...
# moko
f
Hi all, Can anybody help me fix this issue in a compose multiplatform project? hint is a “@StringRes hint: Int” while MR.strings.password_hint is a stringresource. I am trying to cast it as shown in some examples with .resourdeId but it doesn’t work. Thnx in advance
a
Have you tried this?
Copy code
hint = stringResource(id = MR.strings.password_hint.resourceId)
f
Yes I tried. I changed my type to StringResource. to have a workaround. But I cant build my project yet. Having some some errors when building: • Expected object ‘MR’ has no actual declaration in module for JVM
a
Does your project compile for desktop? I think you need to add moko-resources-compose to commonMain, look for the samples in the moko repo
f
I did. Its only for ios and android. I am not using desktop
it seems that there are issues with kotlin 1.9.0 and compose 1.5.0. So i am gonna stop and wait till its solved.
a
You could also go back to kotlin 1.8.20 and continue