找不到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)

查看:327
本文介绍了找不到support-v4.jar(com.android.support:support-v4:24.0.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:配置项目':app'时出现问题.

Error:A problem occurred configuring project ':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

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

MY SDK工具就是这张图片

MY SDK Tool is like this image

我的摇篮是

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中收到此错误

After Updating to v24.2.1 i get this error in debug\AndroidMenifest.xml

感谢&问候 杰伊

Thanks & Regards Jay

推荐答案

您需要在platform/android内的build.gradle文件中进行一些更改,并需要添加maven {url'

You need to do some changes in your build.gradle file inside platforms/android and need to add maven { url 'https://maven.google.com' } before the jcenter() as follows:

allprojects { 
  repositories { 
    mavenCentral()
    maven { url 'https://maven.google.com' } //add this code
    jcenter() 
 } 
}

这对于新版本的Google库至关重要.他们将库从android SDK移到了Maven存储库中.

This is now essential for new versions of google libraries. They moved their libraries out of the android SDK to the maven repo.

这篇关于找不到support-v4.jar(com.android.support:support-v4:24.0.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆