Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle unable to download NewPipeExtractor #1066

Open
Mek101 opened this issue May 22, 2023 · 9 comments
Open

Gradle unable to download NewPipeExtractor #1066

Mek101 opened this issue May 22, 2023 · 9 comments

Comments

@Mek101
Copy link

Mek101 commented May 22, 2023

Despite adding the implementation line as described in the README, gradle searches for the artifact in the wrong urls, specifically it searches for them in the extractor and NewPipeExtractor subdirectories which don't exist.

It tries to open
https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/extractor/v0.22.1/extractor-v0.22.1.pom
https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom
While the correct url is
https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom

Could not determine the dependencies of task ':run'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not create task ':jar'.
      > Could not resolve all files for configuration ':compileClasspath'.
         > Could not find com.github.TeamNewPipe.NewPipeExtractor:extractor:v0.22.1.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/com/github/TeamNewPipe/NewPipeExtractor/extractor/v0.22.1/extractor-v0.22.1.pom
             - https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/extractor/v0.22.1/extractor-v0.22.1.pom
           Required by:
               project : > com.github.TeamNewPipe:NewPipeExtractor:v0.22.1
         > Could not find com.github.TeamNewPipe.NewPipeExtractor:NewPipeExtractor:v0.22.1.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/com/github/TeamNewPipe/NewPipeExtractor/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom
             - https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom
           Required by:
               project : > com.github.TeamNewPipe:NewPipeExtractor:v0.22.1
         > Could not find com.github.TeamNewPipe.NewPipeExtractor:timeago-parser:v0.22.1.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/com/github/TeamNewPipe/NewPipeExtractor/timeago-parser/v0.22.1/timeago-parser-v0.22.1.pom
             - https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/timeago-parser/v0.22.1/timeago-parser-v0.22.1.pom
           Required by:
               project : > com.github.TeamNewPipe:NewPipeExtractor:v0.22.1

For reference, this is my build.gradle.kts:

plugins {
    kotlin("jvm") version "1.8.0"
    application
}

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

repositories {
    mavenCentral()
    maven {
        url = uri("https://jitpack.io")
    }
}

dependencies {
    implementation("com.github.TeamNewPipe:NewPipeExtractor:v0.22.1")

    testImplementation(kotlin("test"))
}

tasks.test {
    useJUnitPlatform()
}

application {
    mainClass.set("MainKt")
}

tasks.jar {
    manifest {
        attributes["Main-Class"] = "MainKt"
    }
    configurations["compileClasspath"].forEach { file: File ->
        from(zipTree(file.absoluteFile))
    }
    duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
@alpenamilch
Copy link

Had the same issue. After hours of time wasted, I just forked this repo and replaced the line

implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.22.6'
with

implementation 'com.github.alpenamilch:NewPipeExtractor:v0.22.6'

it does compile successfully. I have no idea why it is like that.

@Mek101
Copy link
Author

Mek101 commented May 28, 2023

Could it be that it's because TeamNewPipe is an organization?

@bqv
Copy link

bqv commented Jul 5, 2023

Solved it! Seems it's case sensitive. "com.github.teamnewpipe:NewPipeExtractor:v0.22.6" worked fine

@LunevNF
Copy link

LunevNF commented Jul 19, 2023

Solved it! Seems it's case sensitive. "com.github.teamnewpipe:NewPipeExtractor:v0.22.6" worked fine

Yes, it works :\

@shalva97
Copy link

Seems it's case sensitive

Thats strange, I went to Jitpack and copied dependency from their website, but still failed
Screenshot 2023-08-21 at 20 46 26

@shalva97
Copy link

shalva97 commented Aug 22, 2023

Any other workaround? I can not make it work, but It works with other libraries from Jitpack

@alpenamilch
Copy link

You have other problems @shalva97 it is case-sensitive. Works fine for all. Verify your config. (Don't just thumbs down)

@shalva97
Copy link

shalva97 commented Sep 20, 2023

it is caused by JVM toolchain. For some reason Intellij generates new projects with jvmToolchain(8), it should be changed to jvmToolchain(11). Also TeamNewPipe in the library name should be on lowercase. Example:

plugins {
    kotlin("jvm") version "1.9.0"
    application
}

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

repositories {
    mavenCentral()
    maven { setUrl("https://jitpack.io") }
}

dependencies {
    testImplementation(kotlin("test"))
    implementation("com.github.teamnewpipe:NewPipeExtractor:v0.22.7")
}

tasks.test {
    useJUnitPlatform()
}

kotlin {
    jvmToolchain(11)
}

application {
    mainClass.set("MainKt")
}

@wingsum93
Copy link

teamnewpipe

strangely it works 👍🏻
thanks so much

cugwei added a commit to cugwei/FongMiTV that referenced this issue Nov 26, 2023
from TeamNewPipe/NewPipeExtractor#1066

Execution failed for task ':app:dataBindingMergeDependencyArtifactsLeanbackJavaArm64_v8aRelease'.
> Could not resolve all files for configuration ':app:leanbackJavaArm64_v8aReleaseCompileClasspath'.
   > Could not find com.github.TeamNewPipe.NewPipeExtractor:NewPipeExtractor:289db1178ab66694c23893e6a487d4708343c47b.

Signed-off-by: Wade.Cheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants