Closed ssttkkl closed 6 months ago
Sorry, I am wrong. I use imageResources to load a vector drawable so it crashes. Everything works after I use painterResource.
This issue can be closed I think.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug Crash when loading some special XML drawable resources.
Like this one: https://github.com/ssttkkl/compose-multiplatform-bug-reproducer/blob/master/composeApp/src/commonMain/composeResources/drawable/icon_arrow_outward.xml
And this one: https://github.com/ssttkkl/compose-multiplatform-bug-reproducer/blob/master/composeApp/src/commonMain/composeResources/drawable/icon_drag_handle.xml
I got the
.svg
files from Google Fonts, and convert them to.xml
by this way: https://github.com/JetBrains/compose-multiplatform/issues/3713#issuecomment-1733615888Desktop stacktrace:
Android stacktrace:
Affected platforms Select one of the platforms below:
Versions
To Reproduce
This repository contains a reproducer project: https://github.com/ssttkkl/compose-multiplatform-bug-reproducer, just simply run then it crashes.
Expected behavior
Drawable resources can be loaded successfully.