【问题标题】:java.lang.NoClassDefFoundError: android.support.v7.internal.widget.TintManagerjava.lang.NoClassDefFoundError: android.support.v7.internal.widget.TintManager
【发布时间】:2016-07-22 17:30:48
【问题描述】:

错误:

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

构建 gradle 文件: 安卓{

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'
}

【问题讨论】:

    标签: java android noclassdeffounderror


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-24
      • 2015-08-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多