[Gradle] 如何强制 Gradle 重新下载项目的依赖库
2017-06-28 18:00 shaobin0604 阅读(8544) 评论(0) 编辑 收藏 举报强制刷新 Gradle 依赖库缓存
$ gradle build --refresh-dependencies
The --refresh-dependencies option tells Gradle to ignore all cached entries for resolved modules and artifacts. A fresh resolve will be performed against all configured repositories, with dynamic versions recalculated, modules refreshed, and artifacts downloaded.
删除 gradle cache
$ rm -rf $HOME/.gradle/caches/
- How can I force gradle to redownload dependencies?
- How to update Gradle dependencies from command line?
- Gradle build doesn't download dependencies
- How to clear gradle cache?
- [Gradle中文教程系列]-跟我学Gradle-5.4:依赖-依赖的更新与缓存
- How do I always use the latest version of a changing module
- 强制Gradle/Maven刷新缓存并重新从Nexus下载依赖jar包
- 理解Maven中的SNAPSHOT版本和正式版本
- 深踩 AndroidStudio 缓存的坑