PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, July 4, 2022

[FIXED] How can I implement Paypal client side payment on Android studio?

 July 04, 2022     android, gradle, paypal     No comments   

Issue

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.


Solution

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)



Answered By - romtsn
Answer Checked By - Marie Seifert (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing