首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:(23,13)未能解决:com.tuit.sdp:sdp-android:1.0.2

错误:(23,13)未能解决:com.tuit.sdp:sdp-android:1.0.2
EN

Stack Overflow用户
提问于 2015-11-01 09:19:49
回答 1查看 3.4K关注 0票数 0

我的项目运行良好,但是当我重新安装android时,我在导入蝴蝶刀和sdp库时出现了错误。这是我的分级文件:

代码语言:javascript
复制
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'
}

这就是我所犯的错误:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-11-01 10:13:30

似乎jcenter有一个无效的ssl。

作为解决办法,尝试将其添加到build.gradle中。

代码语言:javascript
复制
repositories {
    mavenCentral()
    jcenter {
         url "http://jcenter.bintray.com/"
    }
}
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33460726

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档