美文网首页
Android常用依赖

Android常用依赖

作者: 烟刺痛了眼_a1b7 | 来源:发表于2019-07-12 16:11 被阅读0次

    cardView布局依赖

    implementation 'com.android.support:cardview-v7:28.0.0'
    

    RecyclerView布局依赖

    implementation 'com.android.support:recyclerview-v7:28.0.0'
    

    Banner依赖

    implementation 'com.youth.banner:banner:1.4.10'
    

    Gson依赖

    implementation 'com.google.code.gson:gson:2.2.4'
    

    Okhtt 依赖

    implementation 'com.squareup.okhttp3:okhttp:3.11.0'
    

    Retrofit 依赖

    implementation 'com.squareup.retrofit2:retrofit:2.5.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
    

    数据库查看依赖

    implementation 'com.facebook.stetho:stetho:1.5.0'
    

    SmartRefreshLayout布局上拉加载下拉刷新

    implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.5.1'
    implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.5.1'
    

    GreeDao 依赖

    classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
    
    apply plugin: 'org.greenrobot.greendao' // apply plugin 步骤3
    
    greendao {
    
            //数据库版本号,升级时修改
    
            schemaVersion 1
    
            //生成的DAO,DaoMaster和DaoSession的包路径。默认与表实体所在的包路径相同
    
            daoPackage 'client.example.text.dao'
    
            //生成源文件的路径。默认源文件目录是在build目录中的(build/generated/source/greendao)
    
            targetGenDir 'src/main/java'
    
        }
    

    GreeDao//普通依赖

    implementation 'org.greenrobot:greendao:3.2.2' // add library
    implementation 'org.greenrobot:greendao-generator:3.2.2'
    

    Rx.java依赖

    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.4.0' 
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' 
    implementation "io.reactivex.rxjava2:rxjava:2.1.3" 
    implementation "io.reactivex.rxjava2:rxandroid:2.0.1" 
    
    Design 依赖
    implementation 'com.android.support:design:28.0.0'
    

    ButtonKnif 依赖

    implementation 'com.jakewharton:butterknife:8.8.1'//butterknief依赖
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'//注解id
    

    Evenbus依赖

    implementation 'org.greenrobot:eventbus:3.1.1'//事件流
    implementation 'com.facebook.fresco:fresco:1.12.1'//fresco依赖
    

    相关文章

      网友评论

          本文标题:Android常用依赖

          本文链接:https://www.haomeiwen.com/subject/idhykctx.html