錯誤:配置項目':app'時發生問題。找不到support-v4.jar(com.android.support:support-v4:24.0.0)
Could not find support-v4.jar (com.android.support:support-v4:24.0.0). Searched in the following locations: 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:[email protected]') {
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:[email protected]'
compile 'com.github.arimorty:floatingsearchview:2.0.3'
compile('com.digits.sdk.android:digits:[email protected]') {
transitive = true;
}
compile 'com.android.support:support-v4:24.0.0'
}
apply plugin: 'com.google.gms.google-services'
誰能幫助我?
更新至v24.2.1我在調試得到這個錯誤\ AndroidMenifest.xml
感謝後&問候 周杰倫
奇怪的問題。此庫不在jcenter中,但在本地maven repo.Try來更新SDK管理器並使用compile'com.android.support:support-v4:24.2.1 –
感謝您的答覆。我試過24.2.1,但它在AndroidMenifest.xml中拋出錯誤。讓我爲此發送詳細信息。 – Jay
我增加了屏幕截圖... ple。看看它@GabrieleMariotti – Jay