2

这是构建 gradle 时的错误。

[![Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/pierfrancescosoffritti/androidyoutubeplayer/core/10.0.5/core-10.0.5.pom
       - https://repo.maven.apache.org/maven2/com/pierfrancescosoffritti/androidyoutubeplayer/core/10.0.5/core-10.0.5.pom
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

在此处输入图像描述

4

3 回答 3

1

你添加了 mavenCentral() 吗?请替换 mavenCentral() 而不是 jcenter

于 2021-07-03T05:18:16.337 回答
0

将实现 fileTree(dir: "libs", include: ["*.jar"]) 添加到您的应用级模块依赖项

于 2021-09-23T12:13:20.103 回答
0

如果您查看github上的 repo,则不会维护该库,最后一次提交是在2019 年 11 月 11 日。所以维护者可能没有在mavenCentral. 我建议您从 Github 下载或克隆 repo 并将其用作项目中的模块,或者生成jaroraar并将其用作语言环境库。

于 2021-07-12T23:56:39.093 回答