奏响曲 2015-11-14 18:35 采纳率: 0%
浏览 2759

android开发eclipse导入design,运行时出错无法加载布局

xml代码如下

 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <android.support.design.widget.TabLayout
        android:id="@+id/tablayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

</RelativeLayout>

当运行时,就会报错
Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class android.support.design.widget.TabLayout

design包导入正确,java代码中也能使用,将design作为依赖项目也试过,都是着这样,请问各位大侠这是怎么回事~~~~(>_<)~~~~

  • 写回答

1条回答 默认 最新

  • christmas_zhang 2016-01-29 04:00
    关注

    楼主解决了么?遇到了同样的问题,求指导!

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog