Crash with AppCompatImageView in balloon_layout_body.xml on some devices
guahirah opened this issue · comments
Hey @guahirah, could you please check does your app theme is based on AppCompat or Material?
For example. I'm also wondering if you're using it in a Jetpack Compose project.
<style name="Theme.ChatGPTAndroid" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="android:statusBarColor">@color/green_darker</item>
</style>
Hey @skydoves
I'm not using Jetpack Compose, my app theme is based on Material3.
<style name="App.Theme" parent="Theme.Material3.DayNight.NoActionBar"/>
AppCompat version: androidx.appcompat:appcompat:1.7.0-alpha01
I can't reproduce the crash with my device or the emulator. It only happened to some users, catch by Firebase.
Thank you
Any update on this @skydoves? I'm facing the same issue.
Hey @guahirah , @cp-radhika-s, would you guys can check if your app module project's gradle allows vector resource like the below? https://developer.android.com/develop/ui/views/graphics/vector-drawable-resources
vectorDrawables.useSupportLibrary = true
The default source of the arrow is a vector image.
Hey @skydoves, I don't use it since my app minSdkVersion 21
I'm also using a vector image with src
, and it works fine. I think the problem is with srcCompat
Also, i'm hide the arrow
setArrowSize(0)
setIsVisibleArrow(false)
The same issue on some devices:
Fatal Exception: android.view.InflateException: Binary XML file line #67: Binary XML file line #67: Error inflating class androidx.appcompat.widget.AppCompatImageView
I use Theme.MaterialComponents.DayNight.NoActionBar
with full Compose app.
Souce: https://github.com/egorikftp/GrodnoRoads
Ballow usage: https://github.com/egorikftp/GrodnoRoads/blob/release/features/map/map-ui/src/main/kotlin/com/egoriku/grodnoroads/map/foundation/UsersCount.kt
Balloon 1.5.3 has been released!