Nav
06/14/2023, 10:07 AMImage()
to render an image.
However, when i try the same with a .png image Android studio cannot seem to locate the file. I am importing the asset through resource manager but i think the asset ends up in the androidApp folder instead of commonMain. So i made a Resources
folder inside commonMain manually but it still cannot find the image. Does anyone know the right way to import assets that can be used inside the commonMain folder?
Nav
06/15/2023, 12:13 AMresources
correctly. I will try the examples link you sent and try to figure out the issue.
Do you know of a way that i can find out which folder path the painterResource
is scanning for the image? Maybe my project structure might be at fault here.Nav
06/15/2023, 1:35 AMlogo.png
Android Studio shows me the correct logo so i guess it can detect it properly 🤔
Image(painter = painterResource("logo.png"), contentDescription = null)
However the error says :
Caused by: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: logo.png
which means it cannot detect the resource 😕Ivan Matkov
06/15/2023, 7:57 AMNav
06/16/2023, 6:06 AM