我的應用程序正常工作。有一次,我加上 「編譯 'com.github.paolorotolo:appintro:3.3.0'」 我的依賴關係,包括this庫,出現此錯誤: Error inflating class android.support.design.widget.NavigationView
添加AppIntro庫時將類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:[email protected]'
compile 'com.nhaarman.listviewanimations:lib-manipulation:[email protected]'
compile 'com.nhaarman.listviewanimations:lib-core-slh:[email protected]'
compile 'com.github.paolorotolo:appintro:3.3.0' #This line makes it crash
}