Skip to content

add drawable resource #31

@RavidRinek

Description

@RavidRinek

im using Android Studio Narwhal
for CMP project for Android and iOS
and I have different modules , and I want to add a png image into feature module
but it crash with this error :

Caused by: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: composeResources/adaptivelearning.onboarding.generated.resources/drawable/signup_bg.png

for this usage:
Image(
painter = painterResource(Res.drawable.signup_bg),
contentDescription = null,
modifier = Modifier
.fillMaxSize()
.background(Color.Transparent),
alignment = Alignment.Center,
alpha = 0.2f,
contentScale = ContentScale.Crop
)

any suggestions ? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions