Getting Error when using Android YouTube Video Player 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5' after removing JCenter()

Viewed 1774

This is the error while building the 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

3 Answers

did you add mavenCentral()?please replace mavenCentral() instead of jcenter

The library is not maintained if you look at the repo on github the last commit was on Nov 11, 2019. So the maintainer has probably not published the library on mavenCentral. I suggest you download or clone the repo from Github and use it as a module in your project, or generate a jar or aar and use it as a locale library.

Add implementation fileTree(dir: "libs", include: ["*.jar"]) to your app level module dependency

Related