gradle build fail Error: Failed to resolve: com.android.support:cardview-v7:24.0.1 and ) Failed to resolve: com.android.support:appcompat-v7:24.0.1
gradle build fail Error: Failed to resolve: com.android.support:cardview-v7:24.0.1 and ) Failed to resolve: com.android.support:appcompat-v7:24.0.1
解析失败:com.android.support:cardview-v7:24.0.1 和 ) 解析失败:com.android.support:appcompat-v7:24.0.1
这是gradle配置
我需要做什么来解决这个问题
请帮助我
apply plugin: 'com.android.application'
compileSdkVersion 24
buildToolsVersion '24.0.1'
defaultConfig {
applicationId 'com.fanbaseafrica.fabaservices'
minSdkVersion 14
targetSdkVersion 24
versionCode 2
versionName '2.0'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable false
signingConfig signingConfigs.config
renderscriptOptimLevel 3
}
debug {
debuggable true
}
}
productFlavors {
}
}
repositories {
jcenter()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:cardview-v7:24.0.1'
compile 'com.android.support:appcompat-v7:24.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:design:24.0.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.code.gson:gson:2.2.3'
compile 'com.jakewharton.retrofit:retrofit1-okhttp3-client:1.1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:recyclerview-v4:24.0.1'
compile 'com.android.support:support-v7:24.0.1'
compile 'com.koushikdutta.ion:ion:2.1.6'
compile 'com.sprylab.android.texturevideoview:texturevideoview:1.1.1'
}
这是因为 24.0.1 的支持库不存在。
使用有效版本更改所有支持库依赖项:
24.0.0
24.1.0
24.1.1
24.2.0
这里全部history.
还有一些依赖是错误的:
变化:
compile 'com.android.support:recyclerview-v4:24.0.1'
和
compile 'com.android.support:recyclerview-v7:24.X.X'
'com.android.support:support-v7:24.X.X'
不存在。
使用
compile 'com.android.support:support-v4:24.x.x'
.
解析失败:com.android.support:cardview-v7:24.0.1 和 ) 解析失败:com.android.support:appcompat-v7:24.0.1
这是gradle配置 我需要做什么来解决这个问题 请帮助我
apply plugin: 'com.android.application'
compileSdkVersion 24
buildToolsVersion '24.0.1'
defaultConfig {
applicationId 'com.fanbaseafrica.fabaservices'
minSdkVersion 14
targetSdkVersion 24
versionCode 2
versionName '2.0'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable false
signingConfig signingConfigs.config
renderscriptOptimLevel 3
}
debug {
debuggable true
}
}
productFlavors {
}
}
repositories {
jcenter()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:cardview-v7:24.0.1'
compile 'com.android.support:appcompat-v7:24.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:design:24.0.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.code.gson:gson:2.2.3'
compile 'com.jakewharton.retrofit:retrofit1-okhttp3-client:1.1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:recyclerview-v4:24.0.1'
compile 'com.android.support:support-v7:24.0.1'
compile 'com.koushikdutta.ion:ion:2.1.6'
compile 'com.sprylab.android.texturevideoview:texturevideoview:1.1.1'
}
这是因为 24.0.1 的支持库不存在。
使用有效版本更改所有支持库依赖项:
24.0.0
24.1.0
24.1.1
24.2.0
这里全部history.
还有一些依赖是错误的:
变化:
compile 'com.android.support:recyclerview-v4:24.0.1'
和
compile 'com.android.support:recyclerview-v7:24.X.X'
'com.android.support:support-v7:24.X.X'
不存在。
使用
compile 'com.android.support:support-v4:24.x.x'
.