jitpack.io无法解析github回购 [英] jitpack.io failed to resolve github repo

查看:359
本文介绍了jitpack.io无法解析github回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Github回购并在其上推送标签。



这是我的主项目的gradle文件。

  apply plugin:'com.android .application'

android {
compileSdkVersion 23
buildToolsVersion23.0.0

defaultConfig {
applicationIddropbox.ric.es .myapplication
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName1.0
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}

repositories {
// mavenCentral()
// jcenter()

maven {urlhttps://jitpack.io}

}

依赖项{
编译fileTree(dir:'libs',inclu de:['* .jar'])
compile'c​​om.android.support:appcompat-v7:23.0.1'
compile'c​​om.github.rchampa:DropboxHttpConector:1.0.1'

但是,当我同步gradle时,出现以下错误未能解决com.github.rchampa:DropboxHttpConector:1.0.1



另一个尝试:

  allprojects {
repositories {
jcenter()
maven {urlhttps://jitpack.io}
}
$ b $ dependency {
compile fileTree(dir:'libs',include:['* .jar'])
compile'c​​om.android.support:appcompat- v7:23.0.1'
compile'c​​om.github.rchampa:DropboxHttpConector:1.0.1'
}

仍然失败。

解决方案

经过几次尝试并感谢jitpack支持,图书馆作为Android Gradle依赖项托管在Github中。



我将提供一个一些非常有用的链接:

如何设置你的java库

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

如何检查您的日志jitpack中的依赖关系

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

在我的情况中

  https://jitpack.io/com/github/rchampa/DropboxHttpConector/1.0.3/build.log 


I have a Github repo and pushed 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 sync 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 failing.

解决方案

After a few attempts and thanks to jitpack support now I can import my library hosted in Github as a Android Gradle dependency.

I will provide a a few very useful links:

How setup your java library

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

How check logs of your dependency 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

这篇关于jitpack.io无法解析github回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆