在真实设备上输出类android.support.design.widget.NavigationView时出错

时间:2018-02-03 19:42:35

标签: android

我使用API​​ 27在模拟器上运行我的项目没有任何问题,但在使用API​​ 23的真实设备上,它会因此错误而崩溃:

Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class android.support.design.widget.NavigationView

app gradle:

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:27.0.2'
    implementation 'com.android.support:design:27.0.2'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.android.support:cardview-v7:27.0.2'
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.10'
    compile 'com.uncopt:android.justified:1.0'

}

0 个答案:

没有答案