Error:(23, 13) Failed to resolve: com.intuit.sdp:sdp-android:1.0.2

淺唱寂寞╮ 提交于 2019-12-12 04:16:48

问题


My project was working fine but when I reinstalled android studio I am having errors in importing butterknife and sdp libraries. This is my gradle file:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.works.vipul.brainturner"
        minSdkVersion 13
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.intuit.sdp:sdp-android:1.0.2'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.android.support:support-v4:23.0.1'
    compile 'com.google.android.gms:play-services-ads:8.1.0'
}

and this is the error I am getting:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not resolve com.intuit.sdp:sdp-android:1.0.2.
     Required by:
         BrainTurner:app:unspecified
      > Could not resolve com.intuit.sdp:sdp-android:1.0.2.
         > Could not get resource 'https://jcenter.bintray.com/com/intuit/sdp/sdp-android/1.0.2/sdp-android-1.0.2.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/intuit/sdp/sdp-android/1.0.2/sdp-android-1.0.2.pom'.
               > peer not authenticated
   > Could not resolve com.jakewharton:butterknife:7.0.1.
     Required by:
         BrainTurner:app:unspecified
      > Could not resolve com.jakewharton:butterknife:7.0.1.
         > Could not get resource 'https://jcenter.bintray.com/com/jakewharton/butterknife/7.0.1/butterknife-7.0.1.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/jakewharton/butterknife/7.0.1/butterknife-7.0.1.pom'.
               > peer not authenticated

回答1:


It seems that jcenter has an invalid ssl.

As workaround try to add this to build.gradle

repositories {
    mavenCentral()
    jcenter {
         url "http://jcenter.bintray.com/"
    }
}


来源:https://stackoverflow.com/questions/33460726/error23-13-failed-to-resolve-com-intuit-sdpsdp-android1-0-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!