A newer version of com.android.support:appcompat-v7 than 23.2.1 is available: 24.0.0-alpha1

Viewed 14260

Appears the following error

A newer version of com.android.support:appcompat-v4 than 23.2.1 is available: 24.0.0-alpha1 and A newer version of com.android.support:appcompat-v7 than 23.2.1 is available: 24.0.0-alpha1

my build.gradle file:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.zkc.i2ctools"
        minSdkVersion 8
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile 'com.android.support:support-v4:23.2.1'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile files('libs/core-3.1.0.jar')
}

Gradle build with error .What is wrong?

3 Answers

If you want Lint to stop suggesting alpha versions, you can configure it creating lint.xml in project root:

<?xml version="1.0" encoding="utf-8"?>
<lint>
    <!-- Don't warn about available alpha versions -->
    <issue id="GradleDependency">
        <ignore regexp="is available: .*alpha" />
    </issue>
</lint>

If you prefer you can avoid beta versions too replacing <ignore ... /> line:

<ignore regexp="is available: .*[alpha|beta]" />
Related