这是构建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
发布于 2021-07-03 13:18:16
是否添加了mavenCentral()?请替换mavenCentral()而不是jcenter
发布于 2021-07-13 07:56:39
如果您查看github上的存储库,则不会维护该库。最后一次提交是在2019年11月11日。所以维护者可能还没有在mavenCentral
上发布库。我建议您从Github下载或克隆存储库,并将其用作项目中的模块,或者生成jar
或aar
并将其用作本地库。
发布于 2021-09-23 12:13:20
将实现包含(dir:"libs",fileTree:"*.jar")添加到您的应用级模块依赖中
https://stackoverflow.com/questions/68233109
复制相似问题