How can I tell gradle to redownload dependencies from repositories?
Gradle – How to force gradle to redownload dependencies
gradle
Related Topic
- Android Studio: Add jar as library
- Android-studio – Gradle in Android Studio
- Android – How to update gradle in android studio
- Android – How to create a release signed apk file using Gradle
- Python – return variable outputs in Python function
- Android – Gradle DSL method not found: ‘runProguard’
- Android – Using WakeLock to Keep A Stream Playing
- Gradle – What’s the difference between implementation, api and compile in Gradle
Best Answer
Generally, you can refresh dependencies in your cache with the command line option --refresh-dependencies. You can also delete the cached files under
~/.gradle/caches
. With the next build Gradle would attempt to download them again.What is your specific use case? Do you use dynamic dependency versions or SNAPSHOT versions?
On Unix systems, you can delete all the existing artifacts (artifacts and metadata) Gradle has downloaded using: