Install-missing-android-tools build step failing: could not resolve baseLibrary


#1

Hello,

I need to ask for your help.
One of our Android builds started to fail a couple of days ago. The original cause was that an artifact had been removed from the repository we referenced. We added a new repository to the list which fixed the issue.

But a new one appeared and doesn’t really understand why. Here it is:

             Searched in the following locations:
                 file:/opt/android-sdk-linux/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.pom
                 file:/opt/android-sdk-linux/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
                 file:/bitrise/src/sdk-manager/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
             Required by:
                 project :sdk
           > Could not find com.android.databinding:baseLibrary:2.3.3.
             Searched in the following locations:
                 file:/opt/android-sdk-linux/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.pom
                 file:/opt/android-sdk-linux/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
                 file:/bitrise/src/sdk-manager/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
             Required by:
                 project :sdk > com.android.databinding:library:1.3.1
                 project :sdk > com.android.databinding:adapters:1.3.1

It doesn’t seem a connection/download issue. It says that the artifact is not found on the local Bitrise server.
We supposed that it is a Maven cache problem so temporarily added a “Gradle Runner” build step right before “Install missing Android SDK components” with “–refresh-dependencies” Gradle task. As a result all dependencies were downloaded including this one but the same error appeared again.

Download https://dl.bintray.com/android/android-tools/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.pom

Do you have any idea?
Thanks in advance.


#2

Hello @cian!

some dependencies got deprecated and or moved elsewhere, we found that it can be fixed by changing the build.gradle files repositories field like this:

    maven { url 'https://dl.bintray.com/android/android-tools' }
    maven { url 'https://dl.bintray.com/firebase/gradle' }
    maven { url 'https://google.bintray.com/exoplayer/' }
    google()
    mavenCentral()
    jcenter()
}```

#3

Thank you!


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.