当前位置: 移动技术网 > 移动技术>移动开发>Android > Android开发工具

Android开发工具

2018年03月01日  | 移动技术网移动技术  | 我要评论

1.ButterKnife可以替代掉原有手动的方式findViewById

使用方法如下:
1.在整个项目的project的build.gradle中添加如下代码
dependencies {
……
classpath ‘com.jakewharton:butterknife-gradle-plugin:8.5.1’
}
2.在编写项目的module的build.gradle中添加如下代码
apply plugin: ‘com.jakewharton.butterknife’

dependencies {
    ......
    compile 'com.jakewharton:butterknife:8.5.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
    ......
}

3.下载安装butterknife插件(软件)
在setting–>plugins中需要搜索butterknife插件并且进行安装.

2.okhttp

dependencies {
……
compile ‘com.squareup.okhttp3:okhttp:3.7.0’
compile ‘com.squareup.okio:okio:1.12.0’
……
}

3.svn

这里写图片描述

这里写图片描述

这里写图片描述

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网