Couldn't find com.android.tools.build:gradle:3.0.0

Hi @GSA,

Thanks for filling out the report! :slight_smile:

What the issue is

Could not find com.android.tools.build:gradle:3.0.0.

This error comes from Gradle, not from Bitrise.

In your project you have a reference to this dependency/plugin (or in general might be a dependency of a dependency).

If you check the links gradle prints in the error (Searched in the following locations) those indeed are 404 / not found pages.

Why it works locally

Because most likely at one time this dependency version was available, and so it’s now available on your Mac/PC in the filesystem (cache), and Gradle won’t try to download it (as it’s already downloaded). But then the version was removed / is no longer available, so it will no longer work on any new Mac/PC (as the dependency version can’t be downloaded).

How to debug & fix

In case of an Android “Could not find …” issue it’s usually enough to just:

  1. Do a clean git clone of the repository, into a new directory
  2. And try to build the project from there

That should make it so that there’s no local dependency cache, and all dependencies will be downloaded (and the ones not available anymore will fail).

Once you can reproduce the issue, you can simply debug and fix it on your Mac/PC and then commit the changes, and it’ll work on Bitrise.io too. In this specific case you most likely just have to upgrade the version of the plugin/dependency to a version which still exists.

For more debugging options & more infos / guides for local debugging please see:

and


If you have any questions just let us know! :wink: