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

前端 未结 9 713
日久生厌
日久生厌 2020-12-05 18:04

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

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

相关标签:
9条回答
  • 2020-12-05 19:04

    As you already have v7 dependency added in your gradle file no need to add dependency for v4 because it is already included in v7 library.

    gradle file should looks like this

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.1"
    
        defaultConfig {
            applicationId "ua.guru.lvivflatfinder"
            minSdkVersion 14
            targetSdkVersion 23
            versionCode 1
            versionName "1.0"
            multiDexEnabled true
        }
        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.1.0'
        compile 'com.android.support:recyclerview-v7:23.1.0'
        compile 'com.android.support:cardview-v7:23.1.0'
        compile 'com.google.android.gms:play-services:8.1.0'
    }
    

    .......

    1. (build.gradle (MOdule.app)
    2. implementation 'com.android.support:cardview-v7:28.0.0-rc01'
    0 讨论(0)
  • 2020-12-05 19:04

    I got this error when I tried to build the app while being OFFLINE. After connecting to the internet it worked :-)

    0 讨论(0)
  • 2020-12-05 19:08
    1. Gradle sync / build
    2. implementation 'com.android.support:cardview-v7:28.0.0-rc01'

    ready and go!

    0 讨论(0)
提交回复
热议问题