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 by
Future 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