paypal / android-checkout-sdk

Apache License 2.0
77 stars 37 forks source link

Could not download cardinalmobilesdk-2.2.4-1.aar #37

Closed qtls123 closed 3 years ago

qtls123 commented 3 years ago

What went wrong: Execution failed for task ':quickstart-kotlin:mergeDebugNativeLibs'. Could not resolve all files for configuration ':quickstart-kotlin:debugRuntimeClasspath'. Could not download cardinalmobilesdk-2.2.4-1.aar (org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.4-1)

Could not get resource 'https://cardinalcommerceprod.jfrog.io/artifactory/android/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.4-1/cardinalmobilesdk-2.2.4-1.aar'. Could not GET 'https://jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com/aol-cardinalcommerceprod/filestore/d5/d5eedb4e46acee81da87bdcf572b3c0f90827b9f?x-jf-traceId=4b1ffcdec49adf39&response-content-disposition=attachment%3Bfilename%3D%22cardinalmobilesdk-2.2.4-1.aar%22&response-content-type=application%2Foctet-stream&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20210824T031059Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=AKIASG3IHPL6VGZWKQVB%2F20210824%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=f4dbd1c5179cc6cef60220eaec08f9e0fcad39e065933489bd0bd07f33c7ed40'. Connect to jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com:443 [jfrog-prod-use1-shared-virginia-main.s3.amazonaws.com/52.217.16.12] failed: Read timed out

allprojects { repositories { mavenCentral() mavenLocal() google() jcenter()

maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } allprojects { repositories { mavenCentral() mavenLocal() google() jcenter()

maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } maven { url "https://cardinalcommerceprod.jfrog.io/artifactory/android" credentials { username 'braintree_team_sdk' password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp' } } }

I ran this demo and found this error. Please tell me how to solve this error. Thank you

tdchow commented 3 years ago

Hey @qtls123, It looks like you have an incorrect username for the Cardinal Maven repository. Can you try replacing braintree_team_sdk with paypal_sgerritz?

https://developer.paypal.com/docs/business/native-checkout/android/#2-add-the-sdk-to-your-app

qtls123 commented 3 years ago

I tried to use it maven {

            url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
            credentials {

// username 'braintree_team_sdk' // password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp' username 'paypal_sgerritz' password 'AKCp8jQ8tAahqpT5JjZ4FRP2mW7GMoFZ674kGqHmupTesKeAY2G8NcmPKLuTxTGkKjDLRzDUQ' } } ,

but still prompted to download this AAR, but I still couldn't download it

tdchow commented 3 years ago

Can you share your entire build.gradle (root directory) file?

qtls123 commented 3 years ago

@tdchow Here is my project root directory

// Top-level build file where you can add configuration options common to all sub-projects/modules. //添加谷歌服务依赖 apply plugin: 'com.google.gms.google-services' // Google Services plugin buildscript { ext.kotlin_version = "1.4.20" repositories { mavenCentral() google() } dependencies { classpath "com.android.tools.build:gradle:4.0.1" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" classpath 'com.google.gms:google-services:4.3.3' // Google Services plugin } }

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

}

task clean(type: Delete) { delete rootProject.buildDir }

tdchow commented 3 years ago

@qtls123 That looks correct to me. Can you share your app modules build.gradle file?

Also, are you seeing the same timeout error every time you do a gradle sync?

tdchow commented 3 years ago

Closing this issue due to inactivity.