常用依赖
程序员文章站
2022-04-28 18:54:11
...
json依赖
implementation 'com.google.code.gson:gson:2.2.4'
-------------------------------------------------------------------
把网络请求数据转成String类型
charStreams
implementation 'com.google.guava:guava:16.0.1'
-------------------------------------------------------------------
网络图片的依赖
implementation ‘com.nostra13.universalimageloader:universal-image-loader:1. 9.3’
-------------------------------------------------------------------
异步请求:
implementation 'com.loopj.android:android-async-http:1.4.9'
-------------------------------------------------------------------
XListView
implementation project(':xlistviewlibrary')
-------------------------------------------------------------------
V4依赖
implementation 'com.android.support:support-v4:27.1.1'
-------------------------------------------------------------------
/*android5.0的新特性使用依赖*/
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
-------------------------------------------------------------------
Banner加载图片
implementation'com.youth.banner:banner:1.4.9'
implementation'com.github.bumptech.glide:glide:3.7.0'
-------------------------------------------------------------------
频道管理第三方依赖
maven { url"https://jitpack.io"} //依赖到项目的allprojects的下面
implementation 'com.github.andyoom:draggrid:v1.0.1'
-------------------------------------------------------------------
allprojects,buildscript :maven {url "https://jitpack.io"}
compile 'com.github.andyoom:draggrid:v1.1.4'
android:name="com.andy.library.AppApplication"
allprojects {
repositories {
jcenter()
maven {url "https://jitpack.io"}
}
}
buildscript {
repositories {
jcenter()
maven {url "https://jitpack.io"}
}
------------------------------------------------------------------
ZXing依赖
implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.4'
------------------------------------------------------------
umeng第三方登录依赖
implementation files('libs/umeng-share-core-6.9.4.jar')
implementation 'com.umeng.sdk:common:latest.integration'
implementation 'com.umeng.sdk:analytics:latest.integration'
---------------------------------------------------------------
flyBanner轮播图
implementation 'com.recker.flybanner:flybanner:1.3'
--------------------------------------------------------------
okHttpClient依赖
=-=-=-=-log拦截器
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
-------------------------------------------------------------------
Glide图片
implementation 'com.github.bumptech.glide:glide:4.8.0'
--------------------------------------------------------------
RecycledView
implementation 'com.android.support:recyclerview-v7:28.0.0'
----------------------------------------------------