android - 删除 JCenter() 后使用 Android YouTube 视频播放器 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5' 时出现错误

标签 android android-studio jcenter youtubeplayer

这是构建 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

enter image description here

最佳答案

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

关于android - 删除 JCenter() 后使用 Android YouTube 视频播放器 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5' 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68233109/

相关文章:

android - 应用程序在发布时崩溃,而在调试时不会

java - 无法在 Android 中使用带有 Intent 的已安装媒体应用程序播放音频文件

java - 如何发布常规的非 Android Java 库,以便通过 Maven 和 Gradle 构建脚本将其包含在 Java 项目中?

android - 无法将 github 私有(private)存储库链接到 bintray 中的 jcenter

android - 响应式 CSS 无法正常工作

android - 如何在 Activity 中访问布局-大布局?

java - 我怎样才能让输入将编辑文本中的输入文本添加到我的 ListView 中?在创建的添加按钮之上

java - JCenter 和 Maven Central 坐标有何不同?

android - 具有服务器端组件的 Android 应用程序是否应该直接访问 Facebook?

java - (a)Smack 在登录时返回 "service-unavailable (503)"错误()