Jitpack.io failed to resolve github repo

I have a github rep and tags on it.

This is my gradle file of my main project.

apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.0" defaultConfig { applicationId "dropbox.ric.es.myapplication" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { //mavenCentral() //jcenter() maven { url "https://jitpack.io" } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.github.rchampa:DropboxHttpConector:1.0.1' } 

But when I synchronize gradle, I have the following error Failed to resolve com.github.rchampa:DropboxHttpConector:1.0.1

Another attempt:

 allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.github.rchampa:DropboxHttpConector:1.0.1' } 

Still missing.

+37
git android github jitpack
Oct 10 '15 at 19:55
source share
6 answers

After several attempts and support for jitpack support, I can now import my library hosted on Github as an Android Gradle dependency.

I will provide some very useful links:

How to set up your java library

 https://jitpack.io/docs/BUILDING/#gradle-projects 

How to check your dependency logs in jitpack

 https://jitpack.io/com/github/USER/REPO/TAG/build.log 

In my case

 https://jitpack.io/com/github/rchampa/DropboxHttpConector/1.0.3/build.log 
+12
Oct 10 '15 at 21:45
source share

For everyone who made a simple mistake, I made:

Make sure you add maven { url "https://jitpack.io" } under allprojects instead of buildscript . Xd

Project build.gradle file:

 buildscript { repositories { jcenter() // DO NOT ADD IT HERE!!! } ... } allprojects { repositories { mavenLocal() jcenter() // ADD IT HERE maven { url "https://jitpack.io" } } } 

Thanks to Alexander Pacha for pointing this out in the comment above.

+89
Jan 08 '17 at 3:07 on
source share

I have several Jitpack dependencies, and I ran into this problem after migrating to Gradle 2.

The solution in my case was to change the version in distributionUrl in gradle-wrapper.properties from 2.10 (which was automatically installed by Studio when I accepted the shell version update) to the last one.

+8
Apr 09 '16 at 10:36
source share

I meet this problem when I try to import orhanobut / logger from github. Then I go to jitpack.io and look for the package: find the logger in jitpack Then I clicked on the log icon and found:

Start: Thu Jan 14 11:56:56 UTC 2016 Git: v1.9 commit 5abbc1563422457d4c23e1a0a412d2b0c7dc334e Combine: 8ef1e6b 522d44d Author: Orhan Obut Date: Mon May 25 11:34:20 2015 +0200

Merge request # 30 from orhanobut / oo / settings-fix submodule status: Run gradle build gradle build script JAVA_TOOL_OPTIONS selected: -Dfile.encoding = UTF-8 Download https://services.gradle.org/distributions/gradle-2.2.1 - all.zip

So this is it, it uses gradle 2.2.1-all!

Then I go to my project and change the gradle version to 2.2.1 in settings.gradle, everything works fine!

0
Aug 05 '16 at 6:02
source share

Hallelujah, I have a problem!

Therefore, I realized that the PROBLEM relies on my NETWORK ! I can not access https://jitpack.io/ from my IP, so nothing worked. Just the general Internet from the GSM module (to get a different IP) and the problem went away with @SteveMellross solution

Perhaps you may have 0.001%, that you have the same problem, but if nothing works, try going to https://jitpack.io/ ;)

I hope that there is only a firewall or an internal router error, and my IP is not banned from serving them.

0
Oct 09 '18 at 8:40
source share

Make sure that maven { url "https://jitpack.io" } in the allprojects section in build.gradle (project)

0
Jan 15 '19 at 11:31
source share



All Articles