要在Android項目中包含recyclerview,我們使用recyclerview的所有版本在哪裏?
compile 'com.android.support:recyclerview-v7:26.0.2'
。
我想知道gradle在哪裏得到recyclerview包。我如何知道以前版本的recyclerview?
我已經在maven和jcenter中搜索recyclerview包,但沒有得到任何結果。
要在Android項目中包含recyclerview,我們使用recyclerview的所有版本在哪裏?
compile 'com.android.support:recyclerview-v7:26.0.2'
。
我想知道gradle在哪裏得到recyclerview包。我如何知道以前版本的recyclerview?
我已經在maven和jcenter中搜索recyclerview包,但沒有得到任何結果。
您需要使用compile 'com.android.support:recyclerview-v7:26.0.2'
爲recycer視圖不com.android.support:animated-vector-drawable:26.0.2
所有版本的支持庫版本是。您可以在此處獲得支持庫版本歷史記錄。
https://developer.android.com/topic/libraries/support-library/revisions.html
你必須使用編譯 'com.android.support:recyclerview-v7:26.0.2'庫回收站視圖。
要包括你必須在你的build.gradle
添加RecyclerView:我已搜查在Maven和jcenter recyclerview包
compile 'com.android.support:recyclerview-v7:26.0.2'
,但沒有結果。
recyclerview包含在SDK管理器(如此地方)中。現在,因爲該25.4.0的RecyclerView庫部署在谷歌行家回購和要求:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
我怎麼能知道recyclerview的所有先前版本?
您可以找到list here和old versions here:
您也可以找到other info here:
//it requires compileSdkVersion 26
//it requires to add the google maven repo
// maven {
// url "https://maven.google.com"
// }
compile 'com.android.support:recyclerview-v7:26.0.2'
compile 'com.android.support:recyclerview-v7:26.0.1'
compile 'com.android.support:recyclerview-v7:26.0.0'
//it requires compileSdkVersion 25
compile 'com.android.support:recyclerview-v7:25.4.0'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.0'
compile 'com.android.support:recyclerview-v7:25.2.0'
compile 'com.android.support:recyclerview-v7:25.1.1'
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
//it requires compileSdkVersion 24
compile 'com.android.support:recyclerview-v7:24.1.1'
compile 'com.android.support:recyclerview-v7:24.1.0'
//it requires compileSdkVersion 23
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:recyclerview-v7:23.2.1'
compile 'com.android.support:recyclerview-v7:23.2.0'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.0'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.0'
//it requires compileSdkVersion 22
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.0'
compile 'com.android.support:recyclerview-v7:22.1.1'
compile 'com.android.support:recyclerview-v7:22.1.0'
compile 'com.android.support:recyclerview-v7:22.0.0'
//it requires compileSdkVersion 21
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.2'
compile 'com.android.support:recyclerview-v7:21.0.0'
謝謝!但我使用recyclerview庫而不使用 'maven url「https://maven.google.com」 } '這個存儲庫默認包含在maven中嗎? –
@ XiangZhang號它取決於版本。該v26只在谷歌回購。檢查官方文檔。 –
誰告訴你,那就是用recyclerView圖書館?正確的庫是com.android.support:recyclerview-v7:25.3.1 – Rachit