Home > database >  How can I implement Paypal client side payment on Android studio?
How can I implement Paypal client side payment on Android studio?

Time:02-17

I am trying to add Paypal inside my application. However, it throws me the following error:

    org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'myFirstApp'.
Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'mavenUsername' for Credentials [username: null] of type org.gradle.internal.credentials.DefaultPasswordCredentials_Decorated.

Here is my gradle.properties:

android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
mavenUsername=paypal_sgerritz
mavenPassword=AKCp8jQ8tAahqpT5JjZ4FRP2mW7GMoFZ674kGqHmupTesKeAY2G8NcmPKLuTxTGkKjDLRzDUQ

And build.gradle here:

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven {
            url "https://jitpack.io"
        }
        maven {
            url  "https://cardinalcommerceprod.jfrog.io/artifactory/android"
            credentials {
                username mavenUsername
                password mavenPassword
            }
        }
    }
}

So, what is wrong with this library?? Any answer will be appreciated.

CodePudding user response:

Make sure that your gradle.properties is located in the root project (or rather, that your mavenUsername and mavenPassword are in the root project's gradle.properties)

  • Related