Error building Android project with Guava reference Edited

I'm trying to configure Bitbucket Pipelines on my Android project but I still haven't been able to make it work.

I'm receiving this error message: 


A problem occurred configuring root project 'build'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download guava.jar (
      > Could not get resource ''.
         > Response 304: Not Modified has no content!

I'm not sure why is it trying to use Guava 18.0 if my build.gradle uses version 20.0.

Root build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
    dependencies {
        classpath ''

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath ''

        /*classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'*/
        classpath 'me.tatarka:gradle-retrolambda:3.3.1'
        classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
allprojects {
    repositories {
        maven { url "" }
task clean(type: Delete) {
    delete rootProject.buildDir
dependencies {

ext {
    // Sdk and tools
    minSdkVersion = 15
    targetSdkVersion = 25
    compileSdkVersion = 25
    buildToolsVersion = '25.0.2'

    // App dependencies
    supportLibraryVersion = '25.3.1'
    guavaVersion = '20.0'
    googlePlayServices = '10.2.1'

Module build.gradle:

buildscript {
    repositories {
        maven { url '' }

    dependencies {
        classpath ''
apply plugin: ''
apply plugin: 'io.fabric'
apply plugin: 'me.tatarka.retrolambda'

repositories {
    maven { url '' }

android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion

    dexOptions {
        maxProcessCount 2
        javaMaxHeapSize "2g"
    defaultConfig {
        applicationId ""
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner ""
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), ''

    dataBinding {
        enabled = true

    packagingOptions {
        exclude 'META-INF/LICENSE-FIREBASE.txt'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    /*androidTestCompile('', {
        exclude group: '', module: 'support-annotations'

    // Support libraries
    compile "$rootProject.ext.supportLibraryVersion"
    compile "$rootProject.ext.supportLibraryVersion"
    compile "$rootProject.ext.supportLibraryVersion"
    compile "$rootProject.ext.supportLibraryVersion"
    compile "$rootProject.ext.supportLibraryVersion"
    compile "$rootProject.ext.supportLibraryVersion"
    compile "$rootProject.ext.supportLibraryVersion"

    // Google Maps
    //compile ''
    compile "$rootProject.ext.googlePlayServices"
    compile "$rootProject.ext.googlePlayServices"
    compile "$rootProject.ext.googlePlayServices"
    compile ''

    // Firebase
//    compile ''

    // jUnit
    /*testCompile 'junit:junit:4.12'*/

    // Crashlytics
    compile('') {
        transitive = true;

    // Parceler
    /*compile 'org.parceler:parceler-api:1.1.1'
    apt 'org.parceler:parceler:1.1.1'*/

    // Retrofit
    compile ''
    compile 'com.squareup.retrofit2:retrofit:2.1.0'
    compile 'com.squareup.retrofit2:converter-gson:2.1.0'
    compile 'com.squareup:android-times-square:1.6.5@aar'
    compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'

    // Glide
    compile 'com.github.bumptech.glide:glide:3.7.0'

    // Glide Transformations
    compile 'jp.wasabeef:glide-transformations:2.0.1'

    // ReactiveX
    /*compile 'io.reactivex:rxandroid:1.2.0'
    compile 'io.reactivex:rxjava:1.1.4'*/

    // SparkButton
    compile 'com.github.varunest:sparkbutton:1.0.2'

    // DI
    /*apt ''
    compile ''
    provided 'javax.annotation:jsr250-api:1.0'*/

    // MaterialDatePicker
    /*compile 'com.wdullaer:materialdatetimepicker:3.0.0'*/

    // Date
    /*compile 'joda-time:joda-time:2.9.6'*/

    compile 'de.hdodenhof:circleimageview:2.1.0'

    compile 'com.tenmiles:helpstack:1.2.0'

    // Guava
    compile "$rootProject.ext.guavaVersion"

   // compile ''
    /*compile ''*/

    compile 'com.jaredrummler:material-spinner:1.1.0'

apply plugin: ''

And here is my bitbucket-pipelines.yml:

image: uber/android-build-environment:latest
    - step:
          - echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a # Grab the Android Support Repo which isn't included in the container
          - bash ./gradlew build


What is wrong with it?

1 answer

0 vote

Hi Juliano! For this kind of question, my recommendation would be to post it at so our developer community can help you out :)



Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,584 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you