无法解决:com.android.support:recyclerview-v7:25.3.0并且无法解决:com.android.support:support-v4:25.0.0

时间:2016-12-29 14:37:21

标签: android

继承我的build.gradle

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"

    defaultConfig {
        applicationId "com.example.phantomshadow.remindddddd"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:cardview-v7:25.3.0'
    compile 'com.android.support:recyclerview-v7:25.3.0'
    compile 'com.android.support:appcompat-v7:25.0.0'
    compile 'com.android.support:design:25.0.0'
    compile 'com.android.support:support-v4:25.0.0'
}

2 个答案:

答案 0 :(得分:0)

强文使用相同类型的gradle版本更改此代码..

答案 1 :(得分:0)

更新Android SDK。它应该安装所需的工具版本,然后编译好。