要在android项目中包含recyclerview,我们使用
compile 'com.android.support:recyclerview-v7:26.0.2'
。
我想知道gradle在哪里获得recyclerview包。我如何知道所有以前版本的recyclerview?
我在maven和jcenter中搜索过recyclelerview包但没有结果。
答案 0 :(得分:0)
您需要使用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
答案 1 :(得分:0)
要包含您必须在build.gradle
compile 'com.android.support:recyclerview-v7:26.0.2'
我在maven和jcenter中搜索了recyclelerview包但没有得到任何结果。
recyclerview包含在 SDK Manager 中(因此在本地)。现在,自25.4.0以来,RecyclerView库已部署在 Google maven repo 中,并要求:
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'
答案 2 :(得分:0)
可以在这里找到RecyclerView的版本历史记录: https://developer.android.com/jetpack/androidx/releases/recyclerview
答案 3 :(得分:-1)
您必须使用编译'com.android.support:recyclerview-v7:26.0.2'库来进行Recycler View。