从stackoverflow上搜到的,在我的项目里试了下,可以用。
把volley作为子模块添加到APP工程中
git submodule add -b master https://android.googlesource.com/platform/frameworks/volley volley
关于git submodule命令的使用,可以参考
https://www.kernel.org/pub/software/scm/git/docs/v1.6.1.3/git-submodule.html
在settings.gradle,增加include
include ':volley'
在app/build.gradle中,加入编译依赖
compile project(':volley')
OK,可以使用volley了。
如果需要同步volley,
git submodule foreach git pull
Notes:必须能连得上google才行,就是说必须要墙啊。