添加 AppIntro 库时出错 class android.support.design.widget.NavigationView

Error inflating class android.support.design.widget.NavigationView when adding AppIntro Library

我的应用运行良好。一旦我将 "compile 'com.github.paolorotolo:appintro:3.3.0'" 添加到我的依赖项以包含 this 库,就会发生此错误: Error inflating class android.support.design.widget.NavigationView

这是我的完整 build.gradle:

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.myId"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
    compile 'com.nhaarman.listviewanimations:lib-core:3.1.0@aar'
    compile 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0@aar'
    compile 'com.nhaarman.listviewanimations:lib-core-slh:3.1.0@aar'
    compile 'com.github.paolorotolo:appintro:3.3.0'    #This line makes it crash
}

最后我发现我必须改变

compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'

原因可能在于样式。尝试在 Manifest

中使用
<activity android:name=".IntroActivity" ndroid:theme="@style/FullscreenTheme"/>

并在 styles.xml 中:

<style name="FullscreenTheme" parent="Theme.AppCompat.Light.NoActionBar"/>