android - 错误:(23,13)无法解决:com.intuit.sdp:sdp-android:1.0.2

标签 android android-studio gradle android-gradle-plugin android-library

我的项目运行正常,但是当我重新安装android studio时,导入黄油刀和sdp库时出错。这是我的gradle文件:

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

这是我得到的错误:
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

最佳答案

看来jcenter具有无效的ssl。

解决方法尝试将其添加到build.gradle

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

关于android - 错误:(23,13)无法解决:com.intuit.sdp:sdp-android:1.0.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33460726/

相关文章:

android - 在 Android 上编译 NEON 代码时出错

Android - PhoneGap 应用程序( keystore 文件错误)

android - 找不到 android.support.design,...play-services,...support,...appcompat

android - 从 "packageName"更改为 "compile"后无法解析构建文件中的符号 "implementation"

android - 'AllDevelopmentDebugClassesForMultiDex'。 > java.util.zip.ZipException : duplicate entry: retrofit/android/AndroidApacheClient. 类

gradle - 为什么Gradle发行插件通常不会在build.gradle中修改版本?

android - 在 BaseAdapter 中加载位图时如何修复错误 OutOfMemoryError

java - Android权限在请求多个权限时被拒绝

android - 将 Facebook SDK 添加到 Android Studio build.gradle 时出错

jenkins - 如何在Gradle构建脚本中读取 Artifactory 的 Artifactory 属性