本文介绍了错误:(23,13)无法解析:com.intuit.sdp:SDP-安卓1.0.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的项目工作正常,但是当我重新安装了android的工作室我有进口奶油刀和SDP库的错误。这是我的文件的gradle:
应用插件:'com.android.application安卓{
compileSdkVersion 23
buildToolsVersion23.0.1 defaultConfig {
的applicationIDcom.works.vipul.brainturner
13的minSdkVersion
targetSdkVersion 23
版本code 1
的versionName1.0
}
buildTypes {
发布 {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
}
}
}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编译com.intuit.sdp:SDP-安卓1.0.2
编译com.jakewharton:奶油刀:7.0.1
编译com.android.support:support-v4:23.0.1
编译com.google.android.gms:播放服务的广告:8.1.0
}
这是我收到的错误:
错误:发生了配置工程:应用程序。
>无法解析配置所有的依赖:应用程序:_debugCompile。
>无法解析com.intuit.sdp:SDP-安卓:1.0.2。
要求:
BrainTurner:应用程序:未指定
>无法解析com.intuit.sdp:SDP-安卓:1.0.2。
>无法获取资源'https://jcenter.bintray.com/com/intuit/sdp/sdp-android/1.0.2/sdp-android-1.0.2.pom。
>不能让'https://jcenter.bintray.com/com/intuit/sdp/sdp-android/1.0.2/sdp-android-1.0.2.pom。
>同行没有通过认证
>无法解析com.jakewharton:奶油刀:7.0.1。
要求:
BrainTurner:应用程序:未指定
>无法解析com.jakewharton:奶油刀:7.0.1。
>无法获取资源'https://jcenter.bintray.com/com/jakewharton/butterknife/7.0.1/butterknife-7.0.1.pom。
>不能让'https://jcenter.bintray.com/com/jakewharton/butterknife/7.0.1/butterknife-7.0.1.pom。
>同行没有通过认证
解决方案
看来jcenter有一个无效的SSL。
至于解决方法尝试将此添加到的build.gradle
{库
mavenCentral()
jcenter {
网址http://jcenter.bintray.com/
}
}
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
解决方案
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/"
}
}
这篇关于错误:(23,13)无法解析:com.intuit.sdp:SDP-安卓1.0.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!