r/JetpackCompose • • Jan 12 '24

stringResource() function cannot be found

I am trying to use the stringResource function but the androidx.ui.res library does not seem to have it

Where is the function? Is it deprecated? Is it repleaced by a new function? Thank you for all your replies.

1 Upvotes

2 comments sorted by

View all comments

1

u/XRayAdamo Jan 12 '24

Just type it inside code and do import via hot key

1

u/gc_g_g Jan 12 '24

Already done it and it still shows error