Error:(23, 13) Failed to resolve: com.intuit.sdp:sdp-android:1.0.2
Error:(23, 13) Failed to resolve: com.intuit.sdp:sdp-android:1.0.2
我的项目工作正常,但是当我重新安装 android studio 时,我在导入 butterknife 和 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 studio 时,我在导入 butterknife 和 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/"
}
}