jitpack.io - 故障解决 [英] jitpack.io - failure to resolve

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

问题描述

我试图导入使用的 jitpack.io 。这里是我的顶级的build.gradle

  buildscript {
    库{
        jcenter()
    }
    依赖{
        类路径'com.android.tools.build:gradle:1.5.0        //注意:不要在这里把你的应用程序依赖关系;他们属于
        //在单个模块的build.gradle文件
    }
}allprojects {
    库{
        jcenter()
        行家{URLhttps://jitpack.io}
    }
}

这是我的应用程序/的build.gradle:

 应用插件:'com.android.application安卓{
    compileSdkVersion 23
    buildToolsVersion23.0.0    defaultConfig {
        的applicationIDcom.domain.app
        19的minSdkVersion
        targetSdkVersion 23
        版本code 1
        的versionName1.0
    }    buildTypes {
        发布 {
            minifyEnabled假
            proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
        }
    }
}依赖{
    编译文件树(包括:['的* .jar'],DIR:库)
    编译com.android.support:appcompat-v7:23.0.0
    编译文件(库/解析-1.9.1 /解析-1.9.1.jar')
    编译文件(库/解析-1.9.1 /螺栓,Android的1.2.0.jar')
    编译com.github.deano2390:MaterialShowcaseView:1.0.6}

和我不断收到:错误:(27,13)无法解析:com.github.deano2390:MaterialShowcaseView:1.0.6 无需任何附加信息。

我也试图与建议作为由图书馆的一个auther sffuix:

 编译com.github.deano2390:MaterialShowcaseView:1.0.6@aar


解决方案

一切看起来正确的在你的摇篮文件。你的插件的gradle不能拿起JitPack库由于某种原因。

看看你是否可以解决JitPack测试库:

编译com.github.jitpack:Android的例子:1.0.4

如果这不能然后解决它必须是一个配置问题与你的IDE /摇篮插件/机器。

I'm trying to import a library using jitpack.io. Here's my top-level build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

and here's my app/build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.domain.app"
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile files('libs/Parse-1.9.1/Parse-1.9.1.jar')
    compile files('libs/Parse-1.9.1/bolts-android-1.2.0.jar')
    compile 'com.github.deano2390:MaterialShowcaseView:1.0.6'

}

and I keep getting : Error:(27, 13) Failed to resolve: com.github.deano2390:MaterialShowcaseView:1.0.6 without any additional information.

I've also tried with a sffuix as advised by the library's auther:

compile 'com.github.deano2390:MaterialShowcaseView:1.0.6@aar'

解决方案

Everything looks correct in your Gradle files. Your gradle plugin must not be picking up the JitPack repository for some reason.

See if you can resolve the JitPack test library:

compile 'com.github.jitpack:android-example:1.0.4'

If this cannot be resolved then it must be a configuration issue with your IDE / Gradle plugin / Machine.

这篇关于jitpack.io - 故障解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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