Image showing in Android Studio but not on phone

I stumbled across the same issue and found the answer below: (Source: https://stackoverflow.com/a/40397892/7614252)

What I did to make it work is to change the automatic key assigned (populated via Drag/Drop ImageView) from app:srcCompat="@drawable/logo" to android:src="@drawable/logo" in Text tab to make it appear on both the emulator and the device e.g

<ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/logo"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true"
    android:layout_marginTop="75dp"
    android:id="@+id/logoImageView"
    android:scaleType="fitXY"
    android:scaleX="1.5"
    android:scaleY="1.5" />

I found same problem today . So first check height and width of image and based on it put image into different drawable folder. i.e If image size is 1280 x 840 than put image in drawable-xxhdpi folder.


I recently had this same question, can you check which folder it is in. For me the problem was putting it inside the drawable folder, whilst it should be drawable-nodpi

Also state what device you're seeing this problem, is this multiple devices?

Image not appearing on HTC One M8

Here are relevant answers.