错误:(27,13)无法解决:com.github.jiahuanyu:PopSeekbar:0.2.3

时间:2015-10-13 05:19:44

标签: android seekbar

"compile 'com.github.jiahuanyu:PopSeekbar:0.2.3'" 此依赖项导入库时出现上述错误

错误:

Error:(27, 13) Failed to resolve: com.github.jiahuanyu:PopSeekbar:0.2.3
<a href="openFile">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

我很震惊,请帮助我......

我的build.gradle内容。

申请插件:&#39; com.android.application&#39;

android {     compileSdkVersion 23     buildToolsVersion&#34; 23.0.1&#34;

defaultConfig {
    applicationId "com.example.admin.shopunter_user"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

知识库{

jcenter()

maven { url "https://jitpack.io" }

}

依赖{     编译fileTree(dir:&#39; libs&#39;,include:[&#39; * .jar&#39;])

compile 'com.android.support:appcompat-v7:23.0.1'

compile 'com.google.android.gms:play-services:6.5.87'

compile 'com.loopj.android:android-async-http:1.4.9'

compile 'org.immutables:gson:2.1.0.alpha'

compile 'com.h6ah4i.android.widget.verticalseekbar:verticalseekbar:0.5.2'

compile 'com.google.maps.android:android-maps-utils:0.4+'

compile 'com.android.support:design:23.0.1'

compile 'com.github.jiahuanyu:PopSeekbar:0.2.3'

compile 'com.android.support:support-v4:23.0.1'
compile 'cz.msebera.android:httpclient:4.3.6'
compile 'com.android.support:recyclerview-v7:+'

}

2 个答案:

答案 0 :(得分:1)

只需在 build.gradle

中添加此内容即可
dependencies {

       compile 'com.github.jiahuanyu:PopSeekbar:0.2.3'

    }

然后

<强> Build > Clean Project Then Build > Rebuild Project

然后点击使高速缓存/重新启动选项无效执行Gradle(同步)

答案 1 :(得分:0)

我将它添加到buildscript {}来解决问题。

allprojects {
        repositories {
            jcenter()
            mavenCentral()
        }
    }