首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Lolliopop设备下面找不到异常资源

在Lolliopop设备下面找不到异常资源
EN

Stack Overflow用户
提问于 2016-06-14 17:00:19
回答 1查看 57关注 0票数 0

android.view.InflateException:二进制XML文件行#2:错误充气类

代码语言:javascript
复制
<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和材料设计主题

正如一些帖子所建议的,该项目还增加了较小的图像

还是没有运气

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-26 13:18:07

代码语言:javascript
复制
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.
票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37818082

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档