Rxandroid+rxjava+gson+retrofit+okhttp initial setup of Android network request framework

Source: Internet
Author: User

new Project Integration, Tool Integration

First, Integrated

Rxandroid+rxjava git official website https://github.com/ReactiveX/RxAndroid

Gson git website https://github.com/google/gson/in Android Studio click on the link below

    • Gson Tutorial Series byFuture Studio 进入教程网站

Butterknife git website https://github.com/JakeWharton/butterknife deep http://www.cnblogs.com/zhaoyanjun/p/6016341.html

Retrofit GIT official website https://github.com/square/retrofit

Okhttp git official website https://github.com/square/okhttp

according to the requirements in the Build.gradle   add references in dependencies: Please note that there are relative errors due to different versions of JDK or Android studio.

  

dependencies {
Compile Filetree (dir: ' Libs ', include: [' *.jar '])
Androidtestcompile (' com.android.support.test.espresso:espresso-core:2.2.2 ', {
Exclude group: ' Com.android.support ', module: ' Support-annotations '
})
Compile ' com.android.support:appcompat-v7:25.3.1 '
Compile ' com.android.support.constraint:constraint-layout:1.0.0-alpha9 '
Testcompile ' junit:junit:4.12 '
Compile ' io.reactivex.rxjava2:rxandroid:2.0.1 '
Compile ' io.reactivex.rxjava2:rxjava:2.0.1 '
Compile ' com.google.code.gson:gson:2.8.0 '
Compile ' com.jakewharton:butterknife:8.5.1 '
Annotationprocessor ' com.jakewharton:butterknife-compiler:8.5.1 '
Compile ' com.squareup.retrofit2:retrofit:2.2.0 '
Compile ' com.squareup.okhttp3:okhttp:3.6.0 '
}

Rxandroid+rxjava+gson+retrofit+okhttp initial setup of Android network request framework

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.