小编Mar*_*ark的帖子

类com.sothree.slidinguppanel.SlidingUpPanelLayout出错时出错

我正在我的项目中使用umano的SlidingUpPanel库,但是当我尝试运行应用程序时,InflateException就引发了一个问题.

android.view.InflateException: Binary XML file line #1: Error inflating class com.sothree.slidinguppanel.SlidingUpPanelLayout
Run Code Online (Sandbox Code Playgroud)

这是我的布局

<com.sothree.slidinguppanel.SlidingUpPanelLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/bg_main"
    android:layout_gravity="bottom">

    <CalendarView
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <!-- other layout -->
    </RelativeLayout>
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
Run Code Online (Sandbox Code Playgroud)

这是我的gradle依赖

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile('com.google.android.gms:play-services:6.1.71') {
        exclude module: 'support-v4'
    }
    compile 'com.sothree.slidinguppanel:library:3.0.0'
    compile 'com.google.guava:guava-collections:r03'
    compile 'com.roomorama:caldroid:1.1.8'
}
Run Code Online (Sandbox Code Playgroud)

我做错了什么?

android

1
推荐指数
1
解决办法
1521
查看次数

标签 统计

android ×1