how to fix this issue "Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3."

Adil Siddiqui :

when i add dependencies in gradle it show error:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.github.Goodiebag:PinView:v1.3. Open File Show Details

my dependencies here:

implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:27.+'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    testImplementation 'junit:junit:4.12'
    implementation 'com.android.volley:volley:1.1.1'

    implementation 'com.github.Goodiebag:PinView:v1.3'//this one is showing error

    /*implementation 'dev.dworks.libs:volleyplus:0.1.4'*/
    /*implementation 'dev.dworks.libs:volleyplus:+'*/
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

here is my build.gradle(project Cogniable)

allprojects {
    repositories {
        google()
        jcenter()
        maven{ url "https://jitpack.io" }
    }
}
Suraj Vaishnav :
  1. Make sure your internet connect is on

  2. Your android studio is not in offline mode

If above two are correct then do this : add this maven { url "https://jitpack.io" } in your build.gradle (Project Level) under repositories block which is under allprojects block, so your build.gradle allprojects block code should look like this:

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=108083&siteId=1