Support包版本及常用框架汇总

转载自Android Sdk版本、Support包版本及常用框架最新版本汇总

1.常用框架最新版本

框架名 最新版本 作用
Butter Knife implementation 'com.jakewharton:butterknife:10.2.3' 用注解方式绑定控件id,非androidx用10.0以下版本
greenDAO implementation 'org.greenrobot:greendao:3.3.0' SQLite的ORM框架
LitePal implementation 'org.litepal.android:java:3.2.2' 郭霖先生的数据库框架
gson implementation 'com.google.code.gson:gson:2.8.6' 用于解析JSON数据
EventBus implementation 'org.greenrobot:eventbus:3.2.0' 用总线模式简化组件间通信
Retrofit implementation 'com.squareup.retrofit2:retrofit:2.9.0' 一种类型安全的Http客户端
OkHttp implementation 'com.squareup.okhttp3:okhttp:4.9.0' HTTP,HTTP/2客户端,retrofix依赖于该框架实现通信
RxJava implementation 'io.reactivex.rxjava3:rxjava:3.5.13' 使用可观测的序列来组成异步的、基于事件的程序的库
RxAndroid implementation 'io.reactivex.rxjava3:rxandroid:3.0.0' 使用可观测的序列来组成异步的、基于事件的程序的库
LeakCanary implementation 'com.squareup.leakcanary:leakcanary-android:2.2' 内存泄露检测工具
Glide implementation 'com.github.bumptech.glide:glide:4.11.0' google御用图片加载工具
ZXing implementation 'com.google.zxing:core:3.4.0' 应用最广的条形码与二维码扫描框架
AndroidUtilCode implementation 'com.blankj:utilcode:1.26.0' 一个包含众多实用工具类的库
Dragger implementation 'com.google.dagger:dagger-android:2.2.26' 依赖注入框架

2.JetPack

包名 用途
androidx.appcompat:appcompat:1.1.0 主要有用以兼容的AppCompatActivity
androidx.core:core:1.2.0 各种兼容库
androidx.fragment.app:1.2.0 fragment支持库
androidx.cardview:cardview:1.0.0 卡片式视图
androidx.constraintlayout:constraintlayout:1.1.3 约束布局
androidx.drawerlayout:drawerlayout:1.0.0 抽屉布局
androidx.lifecycle:lifecycle-runtime:2.2.0 感知生命周期
androidx.paging:paging-runtime:2.1.1 在recycleview中分页加载数据
androidx.navigation:navigation-ui:2.2.0 导航框架
androidx.recyclerview:recyclerview:1.1.0 强大的列表视图
androidx.room:room-runtime:2.2.3 数据库ORM框架
androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 下拉提示框
androidx.viewpager2:viewpager2:1.0.0 多视图容器
androidx.work:work-runtime:2.3.0 后台管理框架
androidx.lifecycle:lifecycle-viewmodel:2.2.0 viewModel依赖

3. Support Library

包名 库名 gradle最新依赖版本
v4 compat com.android.support:support-compat:28.0.0
v4 core-utils om.android.support:support-core-utils:28.0.0
v4 core-ui com.android.support:support-core-ui:28.0.0
v4 media-compat com.android.support:support-media-compat:28.0.0
v4 fragment com.android.support:support-fragment:28.0.0
v7 appcompat com.android.support:appcompat-v7:28.0.0
v7 cardview com.android.support:cardview-v7:28.0.0
v7 gridlayout com.android.support:gridlayout-v7:28.0.0
v7 mediarouter com.android.support:mediarouter-v7:28.0.0
v7 palette com.android.support:palette-v7:28.0.0
v7 recyclerview com.android.support:recyclerview-v7:28.0.0
v7 preference com.android.support:preference-v7:28.0.0
v8 renderscript defaultConfig配置
v13 support com.android.support:support-v13:28.0.0
v14 preference com.android.support:preference-v14:28.0.0
v17 preference com.android.support:preference-leanback-v17:28.0.0
v17 leanback com.android.support:leanback-v17:28.0.0
N/A vector drawable com.android.support:support-vector-drawable:28.0.0
N/A Animated Vector com.android.support:animated-vector-drawable:28.0.0
N/A Annotations com.android.support:support-annotations:28.0.0
N/A design com.android.support:design:28.0.0
N/A custom tabs com.android.support:customtabs:28.0.0
N/A percent support 已弃用,ConstraintLayout代替
N/A ExifInterface com.android.support:exifinterface:28.0.0
N/A Recommendation com.android.support:recommendation:28.0.0
N/A Wear UI com.android.support:wear:28.0.0
N/A multidex com.android.support:multidex:1.0.0

4.Android Gradle Plugin Version和对应的Gradle Version

插件版本 所需的 Gradle 版本
1.0.0 - 1.1.3 2.2.1 - 2.3
1.2.0 - 1.3.1 2.2.1 - 2.9
1.5.0 2.2.1 - 2.13
2.0.0 - 2.1.2 2.10 - 2.13
2.1.3 - 2.2.3 2.14.1+
2.3.0+ 3.3+
3.0.0+ 4.1+
3.1.0+ 4.4+
3.2.0 - 3.2.1 4.6+
3.3.0 - 3.3.2 4.10.1+
3.4.0 - 3.4.1 5.1.1+
3.5.0-3.5.3 5.4.1+
3.6.0+ 5.6.4+

5.Android原先库和Androidx库映射

旧构建工件 AndroidX 构建工件
android.arch.core:common androidx.arch.core:core-common
android.arch.core:core androidx.arch.core:core
android.arch.core:core-testing androidx.arch.core:core-testing
android.arch.core:runtime androidx.arch.core:core-runtime
android.arch.lifecycle:common androidx.lifecycle:lifecycle-common
android.arch.lifecycle:common-java8 androidx.lifecycle:lifecycle-common-java8
android.arch.lifecycle:compiler androidx.lifecycle:lifecycle-compiler
android.arch.lifecycle:extensions androidx.lifecycle:lifecycle-extensions
android.arch.lifecycle:livedata androidx.lifecycle:lifecycle-livedata
android.arch.lifecycle:livedata-core androidx.lifecycle:lifecycle-livedata-core
android.arch.lifecycle:reactivestreams androidx.lifecycle:lifecycle-reactivestreams
android.arch.lifecycle:runtime androidx.lifecycle:lifecycle-runtime
android.arch.lifecycle:viewmodel androidx.lifecycle:lifecycle-viewmodel
android.arch.paging:common androidx.paging:paging-common
android.arch.paging:runtime androidx.paging:paging-runtime
android.arch.paging:rxjava2 androidx.paging:paging-rxjava2
android.arch.persistence.room:common androidx.room:room-common
android.arch.persistence.room:compiler androidx.room:room-compiler
android.arch.persistence.room:guava androidx.room:room-guava
android.arch.persistence.room:migration androidx.room:room-migration
android.arch.persistence.room:runtime androidx.room:room-runtime
android.arch.persistence.room:rxjava2 androidx.room:room-rxjava2
android.arch.persistence.room:testing androidx.room:room-testing
android.arch.persistence:db androidx.sqlite:sqlite
android.arch.persistence:db-framework androidx.sqlite:sqlite-framework
com.android.support.constraint:constraint-layout androidx.constraintlayout:constraintlayout
com.android.support.constraint:constraint-layout-solver androidx.constraintlayout:constraintlayout-solver
com.android.support.test.espresso.idling:idling-concurrent androidx.test.espresso.idling:idling-concurrent
com.android.support.test.espresso.idling:idling-net androidx.test.espresso.idling:idling-net
com.android.support.test.espresso:espresso-accessibility androidx.test.espresso:espresso-accessibility
com.android.support.test.espresso:espresso-contrib androidx.test.espresso:espresso-contrib
com.android.support.test.espresso:espresso-core androidx.test.espresso:espresso-core
com.android.support.test.espresso:espresso-idling-resource androidx.test.espresso:espresso-idling-resource
com.android.support.test.espresso:espresso-intents androidx.test.espresso:espresso-intents
com.android.support.test.espresso:espresso-remote androidx.test.espresso:espresso-remote
com.android.support.test.espresso:espresso-web androidx.test.espresso:espresso-web
com.android.support.test.janktesthelper:janktesthelper androidx.test.jank:janktesthelper
com.android.support.test.services:test-services androidx.test:test-services
com.android.support.test.uiautomator:uiautomator androidx.test.uiautomator:uiautomator
com.android.support.test:monitor androidx.test:monitor
com.android.support.test:orchestrator androidx.test:orchestrator
com.android.support.test:rules androidx.test:rules
com.android.support.test:runner androidx.test:runner
com.android.support:animated-vector-drawable androidx.vectordrawable:vectordrawable-animated
com.android.support:appcompat-v7 androidx.appcompat:appcompat
com.android.support:asynclayoutinflater androidx.asynclayoutinflater:asynclayoutinflater
com.android.support:car androidx.car:car-alpha5
com.android.support:cardview-v7 androidx.cardview:cardview
com.android.support:collections androidx.collection:collection
com.android.support:coordinatorlayout androidx.coordinatorlayout:coordinatorlayout
com.android.support:cursoradapter androidx.cursoradapter:cursoradapter
com.android.support:customtabs androidx.browser:browser
com.android.support:customview androidx.customview:customview
com.android.support:design com.google.android.material:material-rc01
com.android.support:documentfile androidx.documentfile:documentfile
com.android.support:drawerlayout androidx.drawerlayout:drawerlayout
com.android.support:exifinterface androidx.exifinterface:exifinterface
com.android.support:gridlayout-v7 androidx.gridlayout:gridlayout
com.android.support:heifwriter androidx.heifwriter:heifwriter
com.android.support:interpolator androidx.interpolator:interpolator
com.android.support:leanback-v17 androidx.leanback:leanback
com.android.support:loader androidx.loader:loader
com.android.support:localbroadcastmanager androidx.localbroadcastmanager:localbroadcastmanager
com.android.support:media2 androidx.media2:media2-alpha03
com.android.support:media2-exoplayer androidx.media2:media2-exoplayer-alpha01
com.android.support:mediarouter-v7 androidx.mediarouter:mediarouter
com.android.support:multidex androidx.multidex:multidex
com.android.support:multidex-instrumentation androidx.multidex:multidex-instrumentation
com.android.support:palette-v7 androidx.palette:palette
com.android.support:percent androidx.percentlayout:percentlayout
com.android.support:preference-leanback-v17 androidx.leanback:leanback-preference
com.android.support:preference-v14 androidx.legacy:legacy-preference-v14
com.android.support:preference-v7 androidx.preference:preference
com.android.support:print androidx.print:print
com.android.support:recommendation androidx.recommendation:recommendation
com.android.support:recyclerview-selection androidx.recyclerview:recyclerview-selection
com.android.support:recyclerview-v7 androidx.recyclerview:recyclerview
com.android.support:slices-builders androidx.slice:slice-builders
com.android.support:slices-core androidx.slice:slice-core
com.android.support:slices-view androidx.slice:slice-view
com.android.support:slidingpanelayout androidx.slidingpanelayout:slidingpanelayout
com.android.support:support-annotations androidx.annotation:annotation
com.android.support:support-compat androidx.core:core
com.android.support:support-content androidx.contentpager:contentpager
com.android.support:support-core-ui androidx.legacy:legacy-support-core-ui
com.android.support:support-core-utils androidx.legacy:legacy-support-core-utils
com.android.support:support-dynamic-animation androidx.dynamicanimation:dynamicanimation
com.android.support:support-emoji androidx.emoji:emoji
com.android.support:support-emoji-appcompat androidx.emoji:emoji-appcompat
com.android.support:support-emoji-bundled androidx.emoji:emoji-bundled
com.android.support:support-fragment androidx.fragment:fragment
com.android.support:support-media-compat androidx.media:media
com.android.support:support-tv-provider androidx.tvprovider:tvprovider
com.android.support:support-v13 androidx.legacy:legacy-support-v13
com.android.support:support-v4 androidx.legacy:legacy-support-v4
com.android.support:support-vector-drawable androidx.vectordrawable:vectordrawable
com.android.support:swiperefreshlayout androidx.swiperefreshlayout:swiperefreshlayout
com.android.support:textclassifier androidx.textclassifier:textclassifier
com.android.support:transition androidx.transition:transition
com.android.support:versionedparcelable androidx.versionedparcelable:versionedparcelable
com.android.support:viewpager androidx.viewpager:viewpager
com.android.support:wear androidx.wear:wear
com.android.support:webkit androidx.webkit:webkit
posted @   我的小鱼干嘞  阅读(691)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· Vue3状态管理终极指南:Pinia保姆级教程
点击右上角即可分享
微信分享提示