https://kotlinlang.org logo
#compose
Title
# compose
m

Mehmet Peker

03/21/2022, 10:00 PM
Copy code
I have an application written with Jetpack Compose in the Google Play Store. I have a custom dialog inside the application. I did not come across it, but my users are getting an IlegalArgumentException error when using Image. Why am I getting this error?
java.lang.IllegalArgumentException: 
  at androidx.compose.ui.res.PainterResources_androidKt.loadImageBitmapResource (PainterResources_android.kt)
  at androidx.compose.ui.res.PainterResources_androidKt.painterResource (PainterResources_android.kt)
c

Colton Idle

03/22/2022, 12:35 AM
Long shot, but I think I'd file a bug and potentially try newer (alpha) version of compose and shipping that to see if the issue is potentially fixed already.
p

pepos

03/22/2022, 3:35 AM
painterResource
has limitations, did you try https://google.github.io/accompanist/drawablepainter/?
m

Mehmet Peker

03/22/2022, 9:20 PM
@pepos No i didn't.I didn't even know before you answer to me.Im gonna try this i hope my problem fix
👏 1
@Colton Idle I tried using the new compose version but my problem still persists
2 Views