compile’com.nostra13.universalimageloader:universal-image-loader:1.9.5’ 图片依赖
compile ‘de.hdodenhof:circleimageview:2.0.0’ 圆形依赖
implementation ‘com.google.guava:guava:16.0.1’
implementation ‘com.google.code.gson:gson:2.2.4’
implementation ‘com.squareup.picasso:picasso:2.3.2’
implementation project(’:xlistviewlib’)
implementation ‘de.hdodenhof:circleimageview:2.0.0’
//tablayout
implementation’com.android.support:design:28.0.0’
main_tab.setTabMode(TabLayout.MODE_FIXED);
viewpage_main.setOffscreenPageLimit(3)//num为你的tab数,//记得懒加载
//banner依赖
implementation ‘cn.bingoogolapple:bga-banner:2.2.4@aar’
implementation ‘com.tapadoo.android:alerter:1.0.8’
//二维码权限
classpath ‘com.github.dcendents:android-maven-gradle-plugin:2.0’
//测试接口
https://www.zhaoapi.cn/product/getCarts?uid=71
http://www.zhaoapi.cn/product/getCarts?uid=71
http://api.tianapi.com/huabian/?key=ce3403763927010ec011f50e7f5e2467&num=10
//XRecyclerview依赖
implementation ‘com.jcodecraeer:xrecyclerview:1.3.2’
//picasso依赖
compile ‘com.squareup.picasso:picasso:2.5.2’
//glide依赖
implementation ‘com.github.bumptech.glide:glide:4.7.1’
//xrecycycle build
implementation fileTree(dir: ‘libs’, include: [’*.jar’])
implementation ‘com.android.support:appcompat-v7:28.0.0’
api ‘com.android.support:recyclerview-v7:28.0.0’
implementation ‘com.android.support:design:28.0.0’
//整个项目的build下
classpath ‘com.android.tools.build:gradle:3.1.3’
classpath ‘com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0’
classpath ‘com.github.dcendents:android-maven-gradle-plugin:1.4.1’
//fresco依赖记得初始化
implementation ‘com.facebook.fresco:fresco:1.11.0’
implementation ‘com.facebook.fresco:animated-gif:1.11.0’
//tabbar
compile ‘com.hjm:BottomTabBar:1.1.1’
//弹框
implementation ‘com.tapadoo.android:alerter:1.0.8’
//eventbus
implementation ‘org.greenrobot:eventbus:3.1.1’
//greendao记得初始化
implementation ‘org.greenrobot:greendao:3.2.2’
classpath ‘org.greenrobot:greendao-gradle-plugin:3.2.2’ // add plugin
mavenCentral() // add repository仓库主项目下
apply plugin: ‘org.greenrobot.greendao’ // apply plugin
//app下
greendao {
schemaVersion 1 //版本
daoPackage ‘bwie.example.com.greendaodemo.greendao’ // 一般为app包名+生成文件的文件夹名
targetGenDir ‘src/main/java’ //生成文件路径
}
//butterNife记得初始化
ButterKnife.bind(this);
fragment时 UnBunder nife=ButterKnife.bind(this,view);//当前的v视图
在onDestory中调用解绑的方法nife.unbind();
1.依赖
implementation ‘com.jakewharton:butterknife:9.0.0-rc1’
annotationProcessor ‘com.jakewharton:butterknife-compiler:9.0.0-rc1’
2.项目build下
classpath ‘com.jakewharton:butterknife-gradle-plugin:9.0.0-rc1’
3.app下
apply plugin: ‘com.jakewharton.butterknife’
//ok3依赖
implementation ‘com.squareup.okhttp3:okhttp:3.10.0’
//retrofit依赖
implementation ‘com.squareup.retrofit2:retrofit:2.4.0’
//retrofit+Raxjava
implementation ‘com.squareup.retrofit2:adapter-rxjava2:2.4.0’
implementation ‘com.squareup.retrofit2:converter-gson:2.4.0’
implementation ‘io.reactivex.rxjava2:rxandroid:2.1.0’
adb connect 127.0.0.1:62001 连接夜神模拟器