Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 889
user4516606 Avatar asked Mar 13 '16 12:03

user4516606


People also ask

What is AppCompat in Android?

AppCompat (aka ActionBarCompat) started out as a backport of the Android 4.0 ActionBar API for devices running on Gingerbread, providing a common API layer on top of the backported implementation and the framework implementation. AppCompat v21 delivers an API and feature-set that is up-to-date with Android 5.0.

What is v4 and v7 in Android?

difference. v4 has largest set of API's than others like App component, User Interface Feature, data handling ,network connectivity and utilities. v7 provided specfic feature sets that can be included in your app independently.


2 Answers

actually, there is a bug, "Lint should not suggest alpha version of support library dependency" https://code.google.com/p/android/issues/detail?id=203270

Update (21-March-2016)

The bug has been merged with this https://code.google.com/p/android/issues/detail?id=203321 and fixed for 2.1 Future release, on March 11

like image 90
Ch Vas Avatar answered Sep 23 '22 09:09

Ch Vas


I believe that you may be confusing that info level log item with an error level log item. Logs like this will happen through out your application. However this does not mean anything in your application is broken.

I do not believe you should upgrade to the newer versions of appcompat until they are out of alpha unless they contain critical features/bug fixes that you require.

If it is unable to build, that's another story altogether.

like image 24
Brady Liles Avatar answered Sep 21 '22 09:09

Brady Liles