android开发常用依赖包

常用的依赖

    //OkHttp
    compile 'com.squareup.okhttp3:okhttp:3.9.0'
    //Gson
    compile 'com.google.code.gson:gson:2.8.2'
    //imageLoader的依赖包
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
    //二维码依赖包:
    compile 'com.github.jwkj:LibZXing:v1.0.4'


    //ButterKnife的依赖
    compile 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

    //retrofit2的依赖
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-gson:2.3.0'
    compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    //rxJava2的依赖
    compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
    // Because RxAndroid releases are few and far between, it is recommended you also
    // explicitly depend on RxJava's latest version for bug fixes and new features.
    compile 'io.reactivex.rxjava2:rxjava:2.1.7'

    compile 'com.squareup.retrofit2:adapter-rxjava:2.3.0'
    //rxJava的依赖
    compile 'io.reactivex:rxandroid:1.2.1'
    // Because RxAndroid releases are few and far between, it is recommended you also
    // explicitly depend on RxJava's latest version for bug fixes and new features.
    compile 'io.reactivex:rxjava:1.1.6'
    //拦截器的依赖
    compile 'com.squareup.okhttp3:logging-interceptor:3.9.1'
    //recyclerview的依赖
    implementation 'com.android.support:recyclerview-v7:26.1.0'
    //banner的依赖
    compile 'com.youth.banner:banner:1.4.10'
    //eventbus的依赖
    compile 'org.greenrobot:eventbus:3.0.0'
    //Fresco的依赖
    compile 'com.facebook.fresco:fresco:1.5.0'
    //glide的依赖
    compile 'com.github.bumptech.glide:glide:3.7.0'
    //xrecyclerview的依赖
    compile 'com.jcodecraeer:xrecyclerview:1.3.2'
    //QMUI的依赖
    compile 'com.qmuiteam:qmui:1.0.6'

    //在gradle.properties中关闭APPT2 编译
    android.enableAapt2=false

常用的权限

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

你可能感兴趣的:(工具类)