kwestionable
kwestionable

Reputation: 496

Resource is not a Drawable Resources$NotFoundException

Getting this error since I started changing device for testing. Did some searching and none of it help because they are outdated. Any help is appreciated!

xml file

<ImageView
    android:id="@+id/loginpanel"
    android:layout_width="491px"
    android:layout_height="210dp"
    android:layout_marginStart="41dp"
    android:layout_marginTop="146dp"
    android:layout_weight="1"
    android:background="@drawable/loginpanel"

    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<ImageView
    android:id="@+id/numpanel2"
    android:layout_width="388px"
    android:layout_height="452px"
    android:layout_marginStart="80dp"
    android:layout_marginTop="368dp"
    android:layout_weight="1"
    android:background="@drawable/numpanel1"
    android:alpha="0.95"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

These are my folders, there's no drawable-v24 folder

enter image description here

Upvotes: 3

Views: 501

Answers (1)

AskNilesh
AskNilesh

Reputation: 69734

Make sure your loginpanel and numpanel1 images is inside drawable folder not inside drawable-v24 folder

move your both images loginpanel and numpanel1 inside drawable

just copy-paste from drawable-v24 to drawable folder it will work

Upvotes: 3

Related Questions