ViksaaSkool
ViksaaSkool

Reputation: 838

Azure DevOps pipleine fails for Android app: Could not find com.shopify:livedata-ktx:2.0.2

I have an app hostend on Azure DevOps nad a pipeline set up. It has worked perfectly for a year - every merge to master builds .aab and propagates it to AppCenter and PlayStore.

This is the Gradle YAML:

variables:
  wrapperScript: 'gradlew'

steps:
- task: Gradle@2
  displayName: 'gradlew bundleRelease bundleStaging bundleDev'
  inputs:
    gradleWrapperFile: '$(Parameters.wrapperScript)'
    options: ' -x lint -s --stacktrace'
    tasks: 'bundleRelease bundleStaging bundleDev'
    publishJUnitResults: false
    sonarQubeRunAnalysis: true
    sonarQubeGradlePluginVersion: 3.2.0

Without changing any configuration, it started giving this error:

enter image description here

enter image description here

in app's configuration build.gradle(:app) I have:

implementation 'com.shopify:livedata-ktx:2.0.2'

wheares in the project build.gradle:

buildscript {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:8.5.1'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.21'
        classpath 'com.google.gms:google-services:4.4.0'
        classpath 'com.google.dagger:hilt-android-gradle-plugin:2.50'
        classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.7.6'
    }
}


allprojects {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}

This library is used in legacy code and I can resolve the issue by deleting it and cherry-picking the few methods that are used, but I want to figure out why is this happening.

Note: needless to say it builds locally (I've cleaned cache in AS to see if I can recreate the failure, but nohing has happened) with no issues.

Any ideas, what am I not seeing/missing?

Upvotes: 0

Views: 166

Answers (0)

Related Questions