Android常用依賴

//retrofit
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    //rxjava
    implementation 'io.reactivex.rxjava2:rxjava:2.1.1'
    //rxandroid
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
    //配合Rxjava 使用
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    //轉換器 將結果通過gson將json串轉換爲model
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
    //GSON庫
    implementation 'com.google.code.gson:gson:2.8.1'
    //okhttp
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    //okhttp日誌攔截器
    implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
    //recyclerview
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    //fresco
    implementation 'com.facebook.fresco:fresco:0.12.0'
    //ecentBus
    implementation 'org.greenrobot:eventbus:3.1.1'
//okhttp
    compile 'com.squareup.okhttp3:okhttp:3.6.0'
    compile 'com.squareup.okio:okio:1.11.0'
 //gson
    compile 'com.google.code.gson:gson:2.8.2'
//xrecyclerview
compile 'com.jcodecraeer:xrecyclerview:1.5.9'

PS:AS3.1.2版本(可能是3.0版本以後)添加依賴時會報錯


解決方法:加入implementation 'com.android.support:design:27.1.1'


//banner
    compile 'com.youth.banner:banner:1.4.10'
//recyclerview
    implementation 'com.android.support:recyclerview-v7:27.1.1'
//glide
    implementation 'com.github.bumptech.glide:glide:4.7.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
//LitePal數據庫
    compile 'org.litepal.android:core:1.4.1'
//GifView
compile 'com.github.Cutta:GifView:1.1'  
//imageloader
compile 'com.zftlive.android.library:feature-android-imageloader:1.0.0'
//CityPicker
implementation 'com.zaaach:citypicker:2.0.1'






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