$ 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/

相关文章:

  • 2021-10-13
  • 2022-02-11
  • 2021-09-30
  • 2021-12-07
  • 2021-06-16
  • 2021-12-12
  • 2022-01-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-10-06
  • 2022-12-23
  • 2021-11-26
  • 2021-12-24
相关资源
相似解决方案