braintree-android-drop-in: CI Build: Could not resolve cardinalmobilesdk: Received status code 403 from server: Forbidden

General information

  • SDK/Library version: 6.0.0
  • Environment: N/A
  • Android Version and Device: N/A

Issue description

This issue occurs when our CI builds our application. Locally, do not have this issue because I guess the dependency is cached. The repository that hosts the cardinalcommerce dependency appears to be unstable lately.

  • Occurred a few times last week
  • Yesterday was fine
  • Today encounter the same issue

This is the error:

* What went wrong:
Execution failed for task ':app:dataBindingMergeDependencyArtifactsAlpha'.
> Could not resolve all files for configuration ':app:alphaRuntimeClasspath'.
   > Could not resolve org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.5-4.
     Required by:
         project :app > com.braintreepayments.api:drop-in:6.0.0 > com.braintreepayments.api:three-d-secure:4.7.0
      > Could not resolve org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.5-4.
         > Could not get resource 'https://cardinalcommerceprod.jfrog.io/artifactory/android/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.5-4/cardinalmobilesdk-2.2.5-4.pom'.
            > Could not GET 'https://cardinalcommerceprod.jfrog.io/artifactory/android/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.5-4/cardinalmobilesdk-2.2.5-4.pom'. Received status code 403 from server: Forbidden

I double checked the credentials here https://developer.paypal.com/braintree/docs/guides/3d-secure/migration/android/v4 which is correct.

This is a snippet from the build.gradle file from the app module.

repositories {
    google()
    mavenCentral()
    maven {
        url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
        credentials {
            username 'braintree_team_sdk'
            password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
        }
    }
}


dependencies {
    implementation "com.braintreepayments.api:drop-in:6.0.0"
}

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Hello, we are currently experiencing the same issue today. Our CI builds are failing with the same error (status 403).

Hi @sarahkoop

We started to see this issue again today

> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.7-5.
     Required by:
         project :app > com.braintreepayments.api:drop-in:6.15.0 > com.braintreepayments.api:three-d-secure:4.41.0
      > Could not resolve org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.7-5.
         > Could not get resource 'https://cardinalcommerceprod.jfrog.io/artifactory/android/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.7-5/cardinalmobilesdk-2.2.7-5.pom'.
            > Could not GET 'https://cardinalcommerceprod.jfrog.io/artifactory/android/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.7-5/cardinalmobilesdk-2.2.7-5.pom'. Received status code 403 from server: 
image