2016-07-22 18 views
1

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

java.lang.NoClassDefFoundError: android.support.v7.internal.widget.TintManager at 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

所有的支持庫必須是相同的版本。嘗試改變無論是程序兼容性-V7和支持-V4到23.0.1或設計23.1.1