这是构建 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
最佳答案
你添加了 mavenCentral() 了吗?请替换 mavenCentral() 而不是 jcenter
关于android - 删除 JCenter() 后使用 Android YouTube 视频播放器 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5' 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68233109/