If you are new to Android Development like I am, READ THESE DOCS:
Android Official Documentation
Medium Article from a LinkedIn Android Dev
I've done iOS development for several years now and decided to branch out into Android development. I found that most of the time it is entirely to do with screen resolution (also mipmap is NOT for drawable images as mentioned before).
None of these answers fixed my issues, I had to setup the standard resolution directories of drawable-hdpi
, drawable-mdpi
, drawable-xhdpi
, drawable-xxhdpi
, and drawable-xxxhdpi
. These are all of the directories your emulator or devices will look at when searching for the correct resolution for the device setup. If you put your image in drawable
alone, this could cause these folders to be overlooked by the device and that's when you get a high-resolution image being non-visible or crashing the app from memory errors. Be sure to check the dimensions of your image and make sure that you import it under the correct drawable directories to ensure the device scales the image accordingly.
My explanation is a small overview, but I do highly recommend reading the articles.