Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Jetpack Compose - R.drawable not found?

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.

like image 737
domeneck Avatar asked Apr 18 '26 15:04

domeneck


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
like image 68
Morteza Allahyari Avatar answered Apr 20 '26 22:04

Morteza Allahyari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!