jitpack.io icon indicating copy to clipboard operation
jitpack.io copied to clipboard

Download library takes forever

Open hendrawd opened this issue 7 years ago • 23 comments

When i add a library that hosted at jitpack from a gradle file, for example implementation 'com.github.IONsoft-Indonesia:RandomNumberAnimation:1.2' Then i sync gradle, it will takes forever. It will stuck at Gradle: Metadata of https://jitpack.io/com/github/IONsoft-Indonesia/RandomNumberAnimation/1.2/RandomAnimationAnimation-1.2-sources.jar At first i think it is because of the library problem, but the problem also exist on other libraries. I already tried to change my internet connection, use vpn, invalidate caches and restart android studio, tried on both my iMac and Macbook, but still no luck.

hendrawd avatar Jan 08 '18 06:01 hendrawd

task sourcesJar(type: Jar) {
    from android.sourceSets.main.java.srcDirs
    classifier = 'sources'
}

artifacts {
    archives sourcesJar
}

Add above configuration to library's build.gradle

zeropercenthappy avatar Jan 08 '18 08:01 zeropercenthappy

There was no such problem before, and it appeared today.

ooftf avatar Jan 08 '18 08:01 ooftf

Same question here.There was no such problem before, and it appeared today.

r17171709 avatar Jan 08 '18 08:01 r17171709

same problem here and occurred today.

fgustovo avatar Jan 08 '18 08:01 fgustovo

Same problem.... 👎

appersiano avatar Jan 08 '18 09:01 appersiano

Silly me, i just added the library module directly to my project without knowing that it can be solved with @zeropercenthappy workaround 🙄

hendrawd avatar Jan 08 '18 09:01 hendrawd

I just want to know whether it's a server problem or a code problem

ooftf avatar Jan 08 '18 09:01 ooftf

I had the same issue, and fixed it by following the instructions on this page: https://jitpack.io/docs/ANDROID/

Julesssss avatar Jan 08 '18 12:01 Julesssss

@Julesssss No Use

r17171709 avatar Jan 08 '18 14:01 r17171709

@r17171709 Did you add this code to the library project or the client project?

Julesssss avatar Jan 08 '18 14:01 Julesssss

Is there any official statement from the @jitpack-io team, that we can reference here?

Alexander-Krause-Glau avatar Jan 08 '18 16:01 Alexander-Krause-Glau

@Alexander-Krause Not yet when I posted this issue, because I have googled and searched for it.

hendrawd avatar Jan 08 '18 16:01 hendrawd

This must be a server problem, as it was not breaking before today. It sounds like it could be a path issue or something similar where the server is not returning a 404 or a different response when the sources jar is not found, therefore causing the entire dependency to be unresolved. So therefore only libraries with properly set up sources.jars will be able to resolve.

Jawnnypoo avatar Jan 08 '18 17:01 Jawnnypoo

Why no official reply has been received until now

ooftf avatar Jan 09 '18 01:01 ooftf

@Julesssss client project

r17171709 avatar Jan 09 '18 03:01 r17171709

Hi all, There was an issue getting files that don't exist - the request would hang. This was caused by a system upgrade during the weekend but has now been rolled back. Due to lower amount of traffic on weekends we didn't spot an issue straight away and existing files were resolving fine. We've been dealing with it through our support system so apologies for missing this ticket. Will be taking steps to ensure we check this scenario in future upgrades.

jitpack-io avatar Jan 10 '18 07:01 jitpack-io

Does anyone still have the problem?

I added

task sourcesJar(type: Jar, dependsOn: classes) {
    classifier = 'sources'
    from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
    classifier = 'javadoc'
    from javadoc.destinationDir
}

artifacts {
    archives sourcesJar
    archives javadocJar
}

But nothing changed, it still hangs

elect86 avatar Jan 11 '18 08:01 elect86

If you have the same problem with us,You don't have to do anything because the official has repaired that

ooftf avatar Jan 11 '18 08:01 ooftf

Well, not for me unfortunately..

As I wrote, I still have the problem, click here and then on "Commits", you'll see all my recent commits hanging indefinitely

elect86 avatar Jan 11 '18 09:01 elect86

I think we have the different problem. I add "com.github.kotlin-graphics:glm:v1.0.1". I stuck it in jcenter Instead of jitpack-io

ooftf avatar Jan 11 '18 09:01 ooftf

Started having this issue today.

OmerUygurOzer avatar Mar 02 '18 23:03 OmerUygurOzer

bump

Just-a-Unity-Dev avatar Apr 26 '22 06:04 Just-a-Unity-Dev

I just ran into this issue today. IntelliJ is stuck at Resolving Maven dependencies.... The project I added was this one. I'm developing a Java Desktop application (not Android). How come this is still happening now?

EDIT: Finally it completed after minutes.

BullyWiiPlaza avatar Sep 08 '22 19:09 BullyWiiPlaza