Bypasses the cache and checks remote repositories for the latest versions of all dependencies. resolutionStrategy
Libraries marked as SNAPSHOT are expected to change. By default, Gradle caches these for 24 hours . Within that window, it won't check for updates, but once it expires, it will look for a fresh version. does gradle download dependencies every time
Forces Gradle to use only cached files. If a dependency is missing, the build will fail instead of trying to download it. --refresh-dependencies Bypasses the cache and checks remote repositories for
When you declare a dependency in your build.gradle file, Gradle first checks its located at $GRADLE_USER_HOME/caches (usually ~/.gradle/caches on macOS/Linux or %USERPROFILE%\.gradle\caches on Windows). it won't check for updates