错误:配置项目':app‘时出现问题。
找不到support-v4.jar (com.android.support:support-v4:24.0.0)。在以下位置搜索:https://jcenter.bintray.com/com/android/support/support-v4/24.0.0/support-v4-24.0.0.jar
我的SDK工具就像这个映像

我的阶梯是
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 24
buildToolsVersion "24"
dexOptions {
javaMaxHeapSize "4g" //specify the heap size for the dex process
preDexLibraries = false //delete the already predexed libraries
}
defaultConfig {
applicationId "com.lionvisionsits.kkasons"
minSdkVersion 19
targetSdkVersion 24
multiDexEnabled false
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile('com.digits.sdk.android:digits:2.0.0@aar') {
transitive = true;
}
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:recyclerview-v7:24.0.0'
compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
compile 'com.android.support:multidex:1.0.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.google.code.gson:gson:2.4'
compile 'com.google.android.gms:play-services:9.4.0'
compile 'com.google.firebase:firebase-messaging:9.4.0'
compile 'ch.acra:acra:4.9.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'me.relex:circleindicator:1.2.1@aar'
compile 'com.github.arimorty:floatingsearchview:2.0.3'
compile('com.digits.sdk.android:digits:2.0.0@aar') {
transitive = true;
}
compile 'com.android.support:support-v4:24.0.0'
}
apply plugin: 'com.google.gms.google-services'有谁可以帮我?
在更新到v24.2.1之后,我在debug\AndroidMenifest.xml中得到了这个错误

谢谢和问候杰伊
发布于 2018-07-09 07:31:47
您需要对平台/android中的build.gradle文件进行一些更改,并需要在jcenter()之前添加maven { url 'https://maven.google.com‘},如下所示:
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.google.com' } //add this code
jcenter()
}
}对于google库的新版本来说,这一点是必不可少的。他们将他们的库从android移到了maven repo。
发布于 2016-10-13 15:48:12
我也有同样的问题,我更新说:
classpath 'com.android.tools.build:gradle:2.+'还有我的梯度包装纸
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip而且起作用了
发布于 2018-10-23 08:30:21
在我的build.gradle文件中,我必须添加和重新排序存储库,因此jcenter是搜索条目的最后一个位置:
allprojects {
repositories {
mavenCentral() //+ added
maven { url 'https://maven.google.com' } //^ moved up
jcenter()
}
}https://stackoverflow.com/questions/39789045
复制相似问题