Closed qtls123 closed 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
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
Can you share your entire build.gradle (root directory) file?
@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 }
@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?
Closing this issue due to inactivity.
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)
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