Any clue what this is happening? :disappointed: `java.lang.NullPointerException: BitmapFactory.decod...
d
Any clue what this is happening? ๐Ÿ˜ž
java.lang.NullPointerException: BitmapFactory.decodeResource(res, resId) must not be null
c
Are any of those drawables vectors?
d
Yup:
new -> Vector Asset -> pick .svg file
Ok, I resolved myself with your hint ๐Ÿ˜›
Thank you ๐Ÿ™‚
c
np ๐Ÿ™‚
For searchers etc: vectorResource() instead of imageResource()
๐Ÿ™ 1
d
Oh, yes, right, sry about that ๐Ÿ˜„ I was so concentrated in try to load it with the original color that I forgot ๐Ÿ˜„
r
Maybe we should change the error message to give more hints about whatโ€™s going on
โœ”๏ธ 6
d
Same, for searchers, donโ€™t wrap into
Icon
but just
Image
๐Ÿ™‚
@romainguy yup, that would be great!
r
โ€œUnable to decode source bitmap, please check the file is not corrupted and contains a raster bitmapโ€
or something like this
Would you mind filing a bug?
d
Sure, np ๐Ÿ™‚
n
@romainguy I think there is more work for us to do regarding resource loading in general
r
Definitely
But this seems like an easy thing to do that would be helpful ๐Ÿ™‚
d
r
Thanks!
๐Ÿ™ 1
d
Thank you for allow me to forgot about Xml design ๐Ÿ˜„
๐Ÿ˜„ 1
r
Canโ€™t wait for 5 years from now when our industry will decide that separating UI from code is better again ๐Ÿ˜›
๐Ÿšซ 1
๐Ÿ˜‚ 4
d
Given that we had 1) code in Java, design in xml 2) code and design in xml ( data binding ) 3) code and design in Kotlin I'd expect 4) design in Kotlin and code in xml As the next step ๐Ÿ˜„
๐Ÿ˜‚ 4
g
Just spent an hour on the same issue ๐Ÿ˜ญ