3

我有這兩個導入:不能無法解決符號設計

import android.support.design.widget.AppBarLayout; 
import android.support.design.widget.CollapsingToolbarLayout; 

依賴性:

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.android.support:appcompat-v7:23.4.0' 
compile "com.android.support:cardview-v7:23.0.0" 
compile 'com.android.support:recyclerview-v7:23.0.+' 
compile 'com.github.bumptech.glide:glide:3.7.0' 
compile 'com.android.support:design:23.0.0' 

}

回答

1

修復你的依賴版本如下:

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.android.support:appcompat-v7:23.4.0' 
compile "com.android.support:cardview-v7:23.4.0" 
compile 'com.android.support:recyclerview-v7:23.4.0' 
compile 'com.github.bumptech.glide:glide:3.7.0' 
compile 'com.android.support:design:23.4.0' 
} 
+0

如何我應該知道哪個版本適合嗎? – 2323

+0

總是嘗試擁有最新版本,因爲它可以修復以前的版本,但也可以將所有支持庫保留在同一版本中。我的解決方案有效嗎? – piotrek1543