Android Jetpack Compose - R.drawable not found?

Viewed 107

I recently started learning Jetpack Compose. Here is problem. When i try to create image android studio can't find R.drawable folder. It looks like that. 1 Why is that?

@Edit: Thank You! Importing R helped.

1 Answers

Be careful that R is imported correctly.

import [BASE_PACKAGE_NAME].R

and check is painterResource imported correctly?

import androidx.compose.ui.res.painterResource
Related