Gradle: Could not resolve all files for configuration / Could not resolve dependency
Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.
Could not resolve all files for configurationCould not resolve all dependenciesCould not find com.Could not resolve com. Meaning
Gradle lists every repository it tried. If the artifact isn’t in any of them (or the network blocks them), the build fails.
Common causes
- Typo or non-existent version
- Repository missing (
google(),mavenCentral()) in settings.gradle - Using deprecated
jcenter() - Gradle offline mode enabled
- Corporate proxy/SSL interception
- Corrupted Gradle cache
⚡ Quick fix
- Check the coordinates on Maven Central / Google Maven
- Add
google()andmavenCentral()independencyResolutionManagement - Disable offline mode in Android Studio
- Refresh:
./gradlew build --refresh-dependencies
Detailed fix by platform
Android
- settings.gradle(.kts):kotlin
dependencyResolutionManagement { repositories { google() mavenCentral() } }
How to diagnose
- Artifact — Exact group:name:version
- Repos — Searched repositories listed in the error
- Network — Proxy/offline?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Android
- INSTALL_FAILED_USER_RESTRICTED INSTALL_FAILED_USER_RESTRICTED: Install canceled by user (Xiaomi/MIUI, Oppo, Vivo)
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
- INSTALL_FAILED_OLDER_SDK INSTALL_FAILED_OLDER_SDK / INSTALL_FAILED_DEPRECATED_SDK_VERSION
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026