无法解决:com.android.support:support-v4:23.0.0 [英] Failed to resolve: com.android.support:support-v4:23.0.0

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

问题描述

使用最新的Android支持库23.1更新后,出现此错误

After update with the latest Android support library 23.1 i get this error

无法解决:com.android.support:support-v4:23.0.0

Failed to resolve: com.android.support:support-v4:23.0.0

我尝试了23.+,23.1.0和23.1.+等的所有组合.如何使其正常运行?

I tried all combination of 23.+ and 23.1.0 and 23.1.+ etc. How to make it run properly?

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "ua.g.tfinder"
        minSdkVersion 14
        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.android.support:appcompat-v7:23.0.+'
    compile 'com.android.support:support-v4:23.+'
    compile 'com.android.support:recyclerview-v7:23.0.+'
    compile 'com.android.support:cardview-v7:23.0.+'
    compile 'com.android.support:design:23.0.+'
    compile 'com.google.android.gms:play-services:7.5.+'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
}

推荐答案

现在可以通过Google的Maven存储库使用支持库.

The support libraries are now available through Google's Maven repository.

步骤1:打开项目的build.gradle文件.

Step 1: Open the build.gradle file of your project.

第2步::确保存储库部分包含带有" https:/的maven部分./maven.google.com "网址.

Step 2: Make sure that the repositories section includes a maven section with the "https://maven.google.com" url in it.

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

这篇关于无法解决:com.android.support:support-v4:23.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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