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

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
    关注

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

    评论

报告相同问题?