Skip to content
Latchkey

Gradle "Could not find group:name:version" missing artifact in CI

Gradle searched every configured repository and found no module matching the coordinates you declared. It lists each repository it checked and the exact paths it tried, which is enough to tell whether the coordinates are wrong or a repository is missing.

What this error means

The build stops with "Could not find group:name:version." followed by "Searched in the following locations:" and a "Required by:" trail pointing at the configuration that wants it.

Gradle
> Could not find com.example:widgets:1.4.0.
  Searched in the following locations:
    - https://repo.maven.apache.org/maven2/com/example/widgets/1.4.0/widgets-1.4.0.pom
  Required by:
      project :app

Common causes

The coordinates are wrong or the version is unpublished

A typo in the group, name, or version, or a version that was never published to the repositories Gradle knows about, leaves nothing to resolve.

The repository that hosts it is not declared

The artifact only exists in a private or third-party repository that is missing from the repositories {} block on the runner.

How to fix it

Confirm the exact coordinates against the repository

  1. Open the "Searched in the following locations" list to see the paths Gradle tried.
  2. Verify the group, name, and version match a published artifact.
  3. Correct the coordinates, or add the repository that hosts the module.
build.gradle.kts
repositories {
  mavenCentral()
  maven { url = uri("https://maven.example.com/releases") }
}

Refresh dependencies after fixing the source

If a negative result was cached, force a fresh resolution so the corrected coordinates are looked up again.

Terminal
./gradlew build --refresh-dependencies

How to prevent it

  • Pin dependency versions to ones you have confirmed are published.
  • Declare every private repository the build needs on the runner.
  • Use a version catalog so coordinates are defined in one reviewed place.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →