资源不是Drawable Resources $ NotFoundException [英] Resource is not a Drawable Resources$NotFoundException
本文介绍了资源不是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文件
<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" />
这些是我的文件夹,没有drawable-v24文件夹
推荐答案
制作确保您的 loginpanel
和 numpanel1
图像位于可绘制文件夹中,而不位于 drawable-v24 $中c $ c>文件夹
Make sure your loginpanel
and numpanel1
images is inside drawable folder not inside drawable-v24
folder
移动两个图像 loginpanel
和 numpanel1
drawable
只需从 drawable-v24 $复制粘贴c $ c>到
drawable
文件夹将起作用
just copy-paste from drawable-v24
to drawable
folder it will work
这篇关于资源不是Drawable Resources $ NotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文