首页 文章

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

提问于
浏览
0

我从 "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内容 .

apply plugin:'com.android.application'

android {compileSdkVersion 23 buildToolsVersion“23.0.1”

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" }

}

依赖项{compile fileTree(dir:'libs',include:['* .jar'])

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 回答

  • 1

    只需将此添加到 build.gradle

    dependencies {
    
           compile 'com.github.jiahuanyu:PopSeekbar:0.2.3'
    
        }
    

    然后

    Build > Clean Project Then Build > Rebuild Project

    然后点击 Invalidate Caches/Restart OptionsDo Gradle (Sync)

  • 0

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

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

相关问题