Could not find org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.4-1.

Nicholas8711
New Community Member

I need to integrate PayPal payment in android app. Im using Native Checkout SDK

This error occur when I run the app:

* What went wrong:
Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
The project declares repositories, effectively ignoring the repositories you have declared in the settings.
You can figure out how project repositories are declared by configuring your build to fail on project repositories.
See https://docs.gradle.org/7.0.2/userguide/declaring_repositories.html#sub:fail_build_on_project_reposi... for details.
> Could not find org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.4-1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.4-1/...
- https://repo.maven.apache.org/maven2/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.4-1/car...
- https://jcenter.bintray.com/org/jfrog/cardinalcommerce/gradle/cardinalmobilesdk/2.2.4-1/cardinalmobi...
Required by:
project :app > com.paypal.checkout:android-sdk:0.2.0

Login to Me Too
5 REPLIES 5

Motidigital
Contributor
Contributor

I have the same error, still no solution?

Login to Me Too

Jenselense
Contributor
Contributor

For me it helped to put the definition of the maven repository for cardinal into the project's setting.gradle instead of the build.gradle (as it is described in PayPals documentation). Hope this helps. Good luck! You'll need it working with PP for mobile...

 

settings.gradle

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
credentials {
// Be sure to add these non-sensitive credentials in order to retrieve dependencies from
// the private repository.
username 'paypal_sgerritz'
password 'AKCp8jQ8tAahqpT5JjZ4FRP2mW7GMoFZ674kGqHmupTesKeAY2G8NcmPKLuTxTGkKjDLRzDUQ'
}
}
}
}

 

Login to Me Too

PaulGuillen
Contributor
Contributor

@Jenselense Thanks to you , im less stressed 🙂 , in paypal documentation said, u have to add it in build.gradle not in settings.gradle

Login to Me Too

kmoxxllp
Contributor
Contributor

what credentials are these which we are saving in setting.gradle

Login to Me Too

Aradhana_21
Contributor
Contributor

I'm facing below error

Could not find method dependencyResolutionManagement() for arguments [settings_2x1i7m6a42jq

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.