android.view.InflateException:二进制XML文件行#2:错误充气类
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/myimage"
android:orientation="vertical" >
</LinearLayout>在棒棒糖和Marshmallow设备上,图像正在加载。
我正在使用Android和材料设计主题
正如一些帖子所建议的,该项目还增加了较小的图像
还是没有运气
发布于 2016-07-26 13:18:07
It got resolved after adding drawable folder and copying all images to drawable folder.
Whatever images I copied to drawable folder was added to drawable-v21 folder(it is shown as myImage(V21 inside drawable folder)).
So for pre Lollipop devices there is no image hence it was crashing.https://stackoverflow.com/questions/37818082
复制相似问题