Could not resolve Android Origin: On your device OSI layer 7 · Application Last updated 15 Oct 2026

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.

Exact message you may see Could not resolve all files for configurationCould not resolve all dependenciesCould not find com.Could not resolve com.
Seen on: Android Java

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

  1. Check the coordinates on Maven Central / Google Maven
  2. Add google() and mavenCentral() in dependencyResolutionManagement
  3. Disable offline mode in Android Studio
  4. Refresh: ./gradlew build --refresh-dependencies

Detailed fix by platform

Android

  1. settings.gradle(.kts):
    kotlin
    dependencyResolutionManagement {
        repositories {
            google()
            mavenCentral()
        }
    }

How to diagnose

  1. Artifact — Exact group:name:version
  2. Repos — Searched repositories listed in the error
  3. 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:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

0x8007007E — 0x8007007E: The specified module could not be found (Windows)0x8007007E407 — HTTP 407 Proxy Authentication Required (HTTP)407Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource link…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar no…Cannot fit requested classes in a single dex file — Cannot fit requested classes in a single dex file (# methods: 65536 > 65536) — mergeDex failed (Android)Cannot fit requested …ClassNotFoundException — java.lang.ClassNotFoundException / NoClassDefFoundError (Java)ClassNotFoundExceptionCocoaPods compatible versions — CocoaPods could not find compatible versions for pod (iOS)CocoaPods compatible …Composer conflict — Your requirements could not be resolved to an installable set of packages. (PHP)Composer conflictCould not…

Explore the map of this error Full error map →

🧠 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.