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

前端 未结 9 719
日久生厌
日久生厌 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'

提交回复
热议问题