[英]Resource Drawable Not Found
When I install my application on my phone, it immediately crashes telling me the drawable is not found: 当我在手机上安装应用程序时,它立即崩溃,告诉我找不到可绘制对象:
Resource "com.aaronapp.hideme:drawable/ic_clear" (7f07007a) is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f07007a a=-1 r=0x7f07007a}
Here is where it is not finding this drawable: 在这里找不到此可绘制对象:
<android.support.design.widget.FloatingActionButton
android:id="@+id/clear_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/ic_clear"
android:visibility="gone"
app:backgroundTint="@android:color/white"
app:fabSize="mini" />
And here is a screenshot of the ic_clear.xml file that is in the drawable that I am trying to refer to, but it's throwing the error: 这是我尝试引用的可绘制对象中ic_clear.xml文件的屏幕截图,但它引发了错误:
What is the issue here? 这是什么问题? I clearly have ic_clear.xml in my drawable folder... thanks for the help!
我的可绘制文件夹中显然有ic_clear.xml ...感谢您的帮助!
您所有的资源都位于drawable-v24
(适用于android 24及以上版本)文件夹中,只需将所有资源重新定位到drawable
fordder即可,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.