this post was submitted on 30 Oct 2024
12 points (83.3% liked)

Programming

17450 readers
87 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] Deckweiss@lemmy.world 5 points 3 weeks ago* (last edited 3 weeks ago) (8 children)

Anything in the log?

Are you testing in the android studio emulator or on a real phone?

Please share the "recommended processes" that you've followed.

And your project settings.

[–] JackGreenEarth@lemm.ee 2 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

Anything in the log?

Plenty, but nothing that is obvious enough to me as a newbie to android dev. Maybe it's obvious to someone more experienced though, the log is too long to post in this comment, but here is a link to the file.

https://share.jackgreenearth.org/logcat/samsung-SM-A405FN-Android-11_2024-10-30_102911.txt

[–] Deckweiss@lemmy.world 2 points 3 weeks ago (1 children)

I get a "URL not found" error on your link. Maybe just put in on pastebin.

Also, I have a bad habbit of editing my posts a lot, sorry, but please read it again when it propagates and reply to the other points as well.

[–] JackGreenEarth@lemm.ee 2 points 3 weeks ago

I edited the link to txt so it should work now, although for me it was white on white so I had to ctrl-a the text to read it. I replied to your other points in a separate comment

load more comments (5 replies)