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>
在Lollipop和Marshmallow设备上正在加载图像。
我正在使用Android Studio和Material Design主题
根据一些帖子的建议清理项目,还添加了较小尺寸的图像
仍然没有运气
答案 0 :(得分:-1)
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.