Android常用的基础依赖库

本文介绍了在Android项目中常用的IT技术库及其版本,包括数据存储、网络请求、UI组件、缓存、媒体选择、协程管理等关键模块。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    // 工具类
    implementation 'com.blankj:utilcodex:1.31.1'
    // 图片加载
    implementation 'com.github.bumptech.glide:glide:4.16.0'
    // 列表工具
	implementation 'com.github.liangjingkanji:BRV:1.6.1'
    implementation  'io.github.scwang90:refresh-header-classics:2.0.5'
    // 日志
    implementation 'com.jakewharton.timber:timber:5.0.1'
    // 写形状
    implementation 'com.github.getActivity:ShapeView:9.0'
    // Html解析
    implementation 'org.jsoup:jsoup:1.16.1'
    // 网络请求
    implementation(platform("com.squareup.okhttp3:okhttp-bom:4.11.0"))
    implementation("com.squareup.okhttp3:okhttp")
    implementation("com.squareup.okhttp3:logging-interceptor")
    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.14.9'
    // 缓存
    implementation "androidx.datastore:datastore-preferences:1.0.0"
    // 媒体选择器
    implementation 'io.github.lucksiege:pictureselector:v3.11.1'
    // 协程
    implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
    // 对话框
    implementation 'com.github.li-xiaojun:XPopup:2.10.0'
    // 显示崩溃信息
    debugImplementation "com.github.simplepeng.SpiderMan:spiderman:v1.1.9"
    // 数据库调试
    debugImplementation 'com.guolindev.glance:glance:1.1.0'
    // 数据库
    def room_version = "2.6.1"
    implementation "androidx.room:room-runtime:$room_version"
    implementation "androidx.room:room-ktx:$room_version"
    implementation "androidx.room:room-paging:$room_version"
    ksp "androidx.room:room-compiler:$room_version"
    // 分页(Compose)
    implementation "androidx.paging:paging-compose:3.3.2"
    // 导航
    implementation "androidx.navigation:navigation-compose:2.8.3"
    implementation 'androidx.core:core-ktx:1.15.0'
    implementation 'androidx.appcompat:appcompat:1.7.0'
    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.7'
    implementation 'androidx.activity:activity-compose:1.9.3'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7'
    // Jetpack Compose
    def compose_bom = "androidx.compose:compose-bom:2024.10.01"
    implementation platform("$compose_bom")
    implementation 'androidx.compose.ui:ui'
    implementation 'androidx.compose.ui:ui-graphics'
    implementation 'androidx.compose.ui:ui-tooling-preview'
    implementation 'androidx.compose.material3:material3'
    debugImplementation 'androidx.compose.ui:ui-tooling'
    debugImplementation 'androidx.compose.ui:ui-test-manifest'
    // Jetpack Compose测试
    androidTestImplementation platform("$compose_bom")
    androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
     // 测试
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.2.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
    // 图片加载
    implementation("io.coil-kt.coil3:coil-compose:3.0.2")
    implementation("io.coil-kt.coil3:coil-network-okhttp:3.0.2")
    // WebDAV
    implementation 'com.github.thegrizzlylabs:sardine-android:0.9'
    // 播放器
    implementation "androidx.media3:media3-exoplayer:1.4.1"
    implementation "androidx.media3:media3-exoplayer-dash:1.4.1"
    implementation "androidx.media3:media3-ui:1.4.1"
    // 辅助查找ui元素所在的界面
    debugImplementation "io.github.yvescheung:Uinspector:2.0.20"
    // 查看数据库
    debugImplementation 'com.guolindev.glance:glance:1.1.0'

项目build.gradle

    id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.21' apply false
    id 'com.google.devtools.ksp' version '2.0.21-1.0.26' apply false

app模块build.gradle

    id 'kotlin-parcelize'
    id 'kotlinx-serialization'
    id 'com.google.devtools.ksp'
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值