Android常用gradle信息
瀑布流
compile project(':staggeredgridviewlibrary')
imageindicator
compile 'com.panxw.imageindicator:library:1.0.1'
Picasso
compile 'com.squareup.picasso:picasso:2.5.2'
pulltorefreshlibrary
compile project(':pulltorefreshlibrary')
Volley
compile 'com.mcxiaoke.volley:library:1.0.19'
Xutils
compile 'org.xutils:xutils:3.3.34'
compile 'org.xutils:xutils:3.3.36'
EventBus
compile 'org.greenrobot:eventbus:3.0.0'
## otto
compile 'com.squareup:otto:1.3.8'
cardView
compile 'com.android.support:cardview-v7:23.2.0'
observablescrollview
compile 'com.github.ksoichiro:android-observablescrollview:1.6.0'
Material Design
compile 'com.android.support:design:23.2.0'
jsoup
compile 'org.jsoup:jsoup:1.9.2'
AndroidAnnotations
第一步:在全局gradle文件中添加apt插件:在下图所示的位置插入如下代码:classpath'com.neenbedankt.gradle.plugins:android-apt:1.8'
第二步:在局部gradle文件中添加如下内容:
applyplugin:'com.neenbedankt.android-apt'
defAAVersion='4.0.0'
apt"org.androidannotations:androidannotations:$AAVersion"
compile"org.androidannotations:androidannotations-api:$AAVersion"
apt {
arguments {
androidManifestFile variant.outputs[0].processResources.manifestFile
resourcePackageName"com.hc.androidannotationsdemo"
}
}
最终效果如下:
compile 'de.greenrobot:greendao:1.3.7'
compile 'de.greenrobot:greendao-generator:1.3.1'
OkHttp
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.squareup.okio:okio:1.9.0'
ImageSelector
compile 'com.yancy.imageselector:imageselector:1.3.3'