1. 程式人生 > >Android Studio 第三方庫依賴

Android Studio 第三方庫依賴

說明:有關這些第三方庫的最新依賴,可以自己到GitHub上去搜索,新增相應版本即可:

OkHttp:一個處理網路請求的開源專案,是安卓端最火熱的輕量級網路框架,由Square公司貢獻

簡介:用於替代HttpUrlConnection和Apache HttpClient(android API23 6.0裡已移除HttpClient,現在已經打不出來)

implementation 'com.squareup.okhttp3:okhttp:3.9.1'

OKGO:一個基於okhttp的標準RESTful風格的網路框架

簡介:該庫是基於 Http 協議,封裝了 OkHttp 的網路請求框架,支援 RxJava,RxJava2,支援自定義快取,支援批量斷點下載管理和批量上傳管理功能

compile 'com.lzy.net:okgo:3.0.4'

CircleImageView:A fast circular ImageView perfect for profile images. (一個快速完美的圓形ImageView)

簡介:圓形使用者頭像使用很多的一個自定義快速圓形ImageView,非常實用

compile 'de.hdodenhof:circleimageview:2.2.0'

RxJava:RxJava 在 GitHub 主頁上的自我介紹是 “a library for composing asynchronous and event-based programs using observable sequences for the Java VM”

簡介:一個在 Java VM 上使用可觀測的序列來組成非同步的、基於事件的程式的庫。

compile 'io.reactivex.rxjava2:rxjava:2.x.y'

GSON:Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.

簡介:Gson是一個Java庫,可以用來將Java物件轉換成他們的JSON表示。它還可以用於將一個JSON字串轉換為一個等價的Java物件。Gson可以使用任意的Java物件,包括那些你沒有原始碼的預先存在的物件。

compile 'com.google.code.gson:gson:2.8.2'

material:MaterialLibrary is an Open Source Android library that back-port Material Design components to pre-Lolipop Android.

簡介:material是一個很有用的開源庫,它提供了很多的自定義控制元件,效果非常好看。

compile 'com.github.rey5137:material:1.2.4'

LitePal:LitePal is an open source Android library that allows developers to use SQLite database extremely easy. You can finish most of the database operations without writing even a SQL statement, including create or upgrade tables, crud operations, aggregate functions, etc. The setup of LitePal is quite simple as well.

簡介:LitePal郭神力薦,一款非常方便的SQLite框架,採用了物件關係對映(ORM)的模式,將平時開發時最常用的一些資料庫功能進行了封裝,使得開發者不用編寫一行SQL語句就可以完成各種建表、増刪改查的操作。並且LitePal很“輕”,jar包大小不到100k,而且近乎零配置。

compile 'org.litepal.android:core:1.6.1''