如何在 Android studio 上实现 Paypal 客户端支付?
How can I implement Paypal client side payment on Android studio?
我正在尝试在我的应用程序中添加 Paypal。但是,它抛出以下错误:
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.
这是我的 gradle.properties:
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
mavenUsername=paypal_sgerritz
mavenPassword=AKCp8jQ8tAahqpT5JjZ4FRP2mW7GMoFZ674kGqHmupTesKeAY2G8NcmPKLuTxTGkKjDLRzDUQ
这里build.gradle:
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven {
url "https://jitpack.io"
}
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
credentials {
username mavenUsername
password mavenPassword
}
}
}
}
那么,这个库有什么问题??任何答案将不胜感激。
确保您的 gradle.properties
位于根项目中(或者更确切地说,您的 mavenUsername
和 mavenPassword
位于根项目的 gradle.properties
中)
我正在尝试在我的应用程序中添加 Paypal。但是,它抛出以下错误:
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.
这是我的 gradle.properties:
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
mavenUsername=paypal_sgerritz
mavenPassword=AKCp8jQ8tAahqpT5JjZ4FRP2mW7GMoFZ674kGqHmupTesKeAY2G8NcmPKLuTxTGkKjDLRzDUQ
这里build.gradle:
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven {
url "https://jitpack.io"
}
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
credentials {
username mavenUsername
password mavenPassword
}
}
}
}
那么,这个库有什么问题??任何答案将不胜感激。
确保您的 gradle.properties
位于根项目中(或者更确切地说,您的 mavenUsername
和 mavenPassword
位于根项目的 gradle.properties
中)