How can I tell gradle to redownload dependencies from repositories?
25 s
If you are using a recent version of Gradle, you can use –refresh-dependencies option.
./gradlew build --refresh-dependencies
you can refer to the Gradle manual.
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.