2016-04-17 53 views
0

我找到了一些答案,但沒有一個適合我的問題。 當我這些東西添加到我的依賴關係:java.lang.NoClassDefFoundError:失敗的分辨率:Landroid/support/v7/internal/widget/TintManager;

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:appcompat-v7:23.0.1' 
    compile 'com.android.support:design:23.0.1' 
    compile 'com.android.support:support-v4:23.0.1' 
    compile 'com.android.support:cardview-v7:23.0.1' 

    compile 'com.google.android.gms:play-services-gcm:8.4.0' 

    compile 'com.nineoldandroids:library:2.4.0' 
} 

一切正常,但是當我補充一點:

compile 'com.wang.avi:library:1.0.5' 

應用程序崩潰,並顯示此錯誤。 我嘗試使用來自github的代碼。

+0

在這裏看到:http://stackoverflow.com/questions/34141152/錯誤-java-lang-noclassdeffounderror-android –

+0

[這個圖書館y正在拉'com.android.support:appcompat-v7:23.2.0'](https://bintray.com/artifact/download/81813780/maven/com/wang/avi/library/1.0.5/library -1.0.5.pom)。由於支持庫中存在其他錯誤修復,我建議您將所有依賴關係從'23.0.1'移動到'23.2.0',並查看是否清除了您的問題。 – CommonsWare

回答

2

'com.wang.avi:library:1.0.5'取決於'com.android.support:appcompat-v7:23.2.0'。有23.2.0及以前的版本(一個之間的一些內部分歧,其中您目前依賴。

支持庫的最新版本是23.3.0應該是兼容的。

如果它不工作出來我可以推薦23.2.1,而不是23.2.0

不要忘記更新所有支持庫版本:

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 

    compile 'com.android.support:design:23.3.0' // includes appcompat-v7 which includes support-v4 
    compile 'com.android.support:cardview-v7:23.3.0' 

    compile 'com.google.android.gms:play-services-gcm:8.4.0' 

    compile 'com.nineoldandroids:library:2.4.0' 
} 
相關問題