force refresh gradle dependencies code example
Example 1: gradle refresh dependencies
./gradlew build --refresh-dependencies
Example 2: gradle refresh dependencies
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}