Hi! I'm starting to use kotlin multiplatform (andr...
# multiplatform
j
Hi! I'm starting to use kotlin multiplatform (android and desktop), and I'm trying to put an image but I don't understand which folder to put the image file in and how to reference the image
h
Put it in
commonMain/ressources
and use
painterRessource("logo.png")
j
Oh, I did something wrong in creating the resources folder. This solved the problem. Thank you!
m
But “resources” is spelled with just one “s”. Otherwise for desktop you can follow this official tutorial: https://github.com/JetBrains/compose-jb/tree/master/tutorials/Image_And_Icons_Manipulations