设置本地缓存的更新策略:
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0,'seconds'
// check for 10 minutes time
resolutionStrategy.cacheChangingModulesFor 10, ‘minutes'
}复制代码
设置更新依赖文件:
compile("com.***.***:***-android-lib:1.7.6-SNAPSHOT") {
changing = true
}复制代码