java.lang.NoClassDefFoundError:android.support.v7.internal.widget.TintManager

时间:2016-07-22 17:30:49

标签: java android noclassdeffounderror

错误:

  

java.lang.NoClassDefFoundError:   android.support.v7.internal.widget.TintManager                                                                        在   android.support.design.widget.TextInputLayout.setError(TextInputLayout.java:379)

构建gradle文件: android {

compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
    applicationId "com.inn.microwave"
    minSdkVersion 16
    targetSdkVersion 23
}

依赖关系:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:design:23.0.1' 
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:support-v4:23.0.1'
    compile 'com.google.code.gson:gson:2.2.4'
    compile 'com.android.support:recyclerview-v7:23.1.1'
    compile 'com.android.support:cardview-v7:23.1.1'
}

1 个答案:

答案 0 :(得分:1)

所有支持库必须是相同的版本。尝试将appcompat-v7和support-v4更改为23.0.1或设计为23.1.1