常用的实用工具jar包导入

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.4.0'


    compile 'com.android.support:design:23.4.0'//需要使用design包中view时导入


    compile 'com.squareup.okhttp:okhttp:2.7.5' //使用okhttp框架导入jar


    compile 'com.github.bumptech.glide:glide:3.7.0'//加载网络图片使用glide


    compile 'com.squareup.retrofit2:retrofit:2.1.0'//使用retrofit导入的基础包


    //如果需要retrofit访问网络获取的String字符串类型的数据导入的包
    compile 'com.squareup.retrofit2:converter-scalars:2.0.0-beta4'


    //如果需要retrofit访问网络获取需要使用内置的gson解析时需要导入的包
    compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'


    //导入RxJava和RxAndroid的jar包
    compile 'io.reactivex:rxjava:1.1.10'
    compile 'io.reactivex:rxandroid:1.2.1'


    // .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
    // retrofit结合rxJava使用时需要导入的jar
    compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0'


    //使用ormLite导入的jar包
    compile 'com.j256.ormlite:ormlite-android:4.48'
    compile 'com.j256.ormlite:ormlite-core:4.48'


    //GreenDao需要导入的jar包
    compile 'de.greenrobot:greendao:2.1.0'  android 项目中的jar 包
    compile 'de.greenrobot:greendao-generator:2.1.0'  java项目中需要导入的jar包


//自动生成viewholder,findviewbyid,onclick
compile 'com.jakewharton:butterknife:7.0.1'
   
    compile 'com.android.support:design:24.2.0'


//毕加索,图片加载
    compile 'com.squareup.picasso:picasso:2.5.2'
//网络加载
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
//解析
    compile 'com.alibaba:fastjson:1.2.17'
//图片加载
    compile 'com.facebook.fresco:fresco:0.13.0'
//下拉刷新
    compile project(':pullToRefreshlibrary')
//轻量数据库
    compile files('libs/xUtils-2.6.14.jar')
}

猜你喜欢

转载自blog.csdn.net/fynzhy/article/details/52677691