cross-posted from: https://lemm.ee/post/46066494
I followed the recommended processes for adding images to my app, and it is being displayed correctly on the layout preview, but not at all on the app. I have vector assets, webp, png images, but none are being displayed.
The project is too big to put here in its entirety, but please ask for any snippets that could help you solve the issue. I’ve tried searching the web and asking LLMs and neither could help, so please help me, fellow humans.
Have you tried with scr instead of srcCompat?
Yes, but then it gave some error when compiling and failed to compile
Then post the error instead of saying you got an error
I can’t remember it right now nor do I have access to the laptop at the moment, but when I do, I will post the exact error I got.
https://stackoverflow.com/questions/40624554/difference-between-appsrccompat-and-androidsrc-in-androids-layout-xml
May be relevent to your issue