java找不到安卓。拱生命周期:扩展:2.1.0。所需人员:项目:app>com。贝宝。签出:安卓sdk:0.1.0
我正在尝试从下面的链接在Android项目中安装paypalcheckout sdk
https://developer.paypal.com/docs/business/native-checkout/安卓/
我还将其添加到gradle应用程序模块文件中的依赖项中 实现'com。贝宝。签出:安卓 sdk:0.2.0'&;重建项目,但它将无法生成
项目中的gradle文件代码
allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven {
url "https://maven.google.com"
}
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/安卓"
credentials {
// Be sure to add these non-sensitive credentials in order to retrieve dependencies from
// the private repository.
username 'paypal_sgerritz'
password 'AKCp8jQ8tAahqpT5JjZ4FRP2mW7GMoFZ674kGqHmupTesKeAY2G8NcmPKLuTxTGkKjDLRzDUQ'
}
}
maven { url 'https://maven.fabric.io/public' }
}
}
当我构建安卓项目时,它会显示错误
Execution failed for task ':app:preDebugBuild'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find 安卓.arch.lifecycle:extensions:2.1.0.
Required by:
project :app > com.paypal.checkout:安卓-sdk:0.1.0
> Could not find 安卓.arch.lifecycle:runtime:2.1.0.
Required by:
project :app > com.paypal.checkout:安卓-sdk:0.1.0
> Could not find 安卓.arch.lifecycle:runtime:2.1.0.
Required by:
project :app > com.安卓.support:support-v4:28.0.0 > com.安卓.support:support-compat:28.0.0
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
我不熟悉安卓系统。建议我一些解决方法
# 1 楼答案
您可能缺少在应用程序级生成中添加依赖项的功能。格拉德尔