youtubedl-android icon indicating copy to clipboard operation
youtubedl-android copied to clipboard

Intellij Idea CE Gradle Sync unable to resolve the library despite having Maven Central added to the repositories block in build.gradle.kts.

Open TechPro424 opened this issue 1 year ago • 0 comments

Intellij Idea CE Gradle Sync is unable to resolve the library despite having Maven Central added to the repositories block in build.gradle.kts, and when I try to import it in my project, it is not available. Where am I going wrong with my Gradle buildscript? Here is my build.gradle.kts

plugins {
    kotlin("jvm") version "2.0.21"
    application
    java
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

dependencies {
    testImplementation(kotlin("test"))
    implementation("com.adamratzman:spotify-api-kotlin-core:4.1.3")
    implementation("io.github.junkfood02.youtubedl-android:library:0.17.2")
    implementation("io.github.junkfood02.youtubedl-android:ffmpeg:0.17.2")
    implementation("io.github.junkfood02.youtubedl-android:aria2c:0.17.2")

}

tasks.test {
    useJUnitPlatform()
}
kotlin {
    jvmToolchain(21)
}

Here is the error for youtubedl-android:library (the same error is thrown for the other 2 libraries as well)

RiMusic_Spotify:main: Could not resolve io.github.junkfood02.youtubedl-android:library:0.17.2.
Required by:
    root project :

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


TechPro424 avatar Dec 24 '24 08:12 TechPro424