記錄一下自己用過的一些工具和庫吧

以下地址如果不能用了那就自己再找吧,可能人家換地址了,android引用如果不能用,請去github看最新地址

A:Jcenter倉庫地址:https://jcenter.bintray.com/,可後綴地址精確到某個庫,比如OKhttp庫的引用爲com.squareup.okhttp3:okhttp:3.9.0,

那麼其在Jcenter庫的位置就是 https://jcenter.bintray.com/com/squareup/okhttp3/okhttp/,不過前提是這個庫在Jcenter上,

如果是在maven或者其他倉庫那就不是這個了。

B:Google倉庫地址:https://dl.google.com/dl/android/maven2/index.html

0、騰訊開源UI庫:

 github:https://github.com/QMUI/QMUI_Android

 android引用:
com.qmuiteam:qmui:1.0.7

1、OKhttp:

 github:https://github.com/square/okhttp

 android引用:com.squareup.okhttp3:okhttp:3.9.0

2、Retrofit:

 github:https://github.com/square/retrofit

 android引用:com.squareup.retrofit2:retrofit:2.3.0

其他配套組件:

    com.squareup.retrofit2:retrofit-adapters:2.3.0'
    com.squareup.retrofit2:retrofit-converters:2.3.0'
    com.squareup.retrofit2:converter-gson:2.3.0'
    com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    com.squareup.retrofit2:converter-scalars:2.3.0'
    org.ligboy.retrofit2:converter-fastjson-android:2.1.0'

3、Rxjava:

 github:https://github.com/ReactiveX/RxJava

 android引用:io.reactivex.rxjava2:rxjava:2.1.3

4、上拉加載更多,下拉刷新的RecyclerView庫

 github:https://github.com/mylhyl/Android-CommonRefreshLayout

 android引用:com.mylhyl:commonrefreshlayout:2.4

5、優雅的打印日誌的庫logger:

 github:https://github.com/orhanobut/logger

 android引用:com.orhanobut:logger:2.1.1

6、Glide:(要加

  repositories {
    mavenCentral()
    google()
  }
  

 github:https://github.com/bumptech/glide

 android引用:com.github.bumptech.glide:glide:4.3.1

7、Gson:

 github:https://github.com/google/gson

 android引用:com.google.code.gson:gson:2.8.2

8、eventbus:

 github:https://github.com/greenrobot/EventBus

 android引用:org.greenrobot:eventbus:3.0.0

9、fastjson

 github:https://github.com/alibaba/fastjson

 android引用:com.alibaba:fastjson:1.1.63.android

10、butterknife:

 github:https://github.com/JakeWharton/butterknife

 android引用:com.jakewharton:butterknife:8.8.1

 配套組件:annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

11、谷歌multidex:

 github:

 android引用:com.android.support:multidex:1.0.2

12、dagger:

 github:https://github.com/square/dagger

 android引用:com.google.dagger:dagger:2.9

13、阿里熱更新alicloud-android-hotfix:

 github:https://github.com/dodola/HotFix

 android引用:com.aliyun.ams:alicloud-android-hotfix:3.1.9

 需在app.build文件加

 repositories {
      maven {
          url "http://maven.aliyun.com/nexus/content/repositories/releases"
      }
  }

14、rxbinding:

 github:https://github.com/JakeWharton/RxBinding

 android引用:com.jakewharton.rxbinding2:rxbinding:2.1.0

15、一個工具類庫:

 github:https://github.com/xiaodouyaer/CommonUtils

 android引用:com.liuchaoya:commonutils:1.0.2

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章