Search code examples
androidandroid-studio-2.0

gradle version incompatible (android studio 2.1 preview 1) <title editable>


today I upgraded my studio, and every latest sdkBuild version. now my build.gradle(app) configuration looks like this:

android {
compileSdkVersion 23
buildToolsVersion "24.0.0 rc1"

defaultConfig {
    applicationId "com.mydesign.rockstar.androidndemo"
    minSdkVersion 15
    targetSdkVersion 23
    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:appcompat-v7:23.2.0'
compile 'com.android.support:design:23.2.0'

}

now it says a newer version of com.android.support:appcompat-v7 than 23.2.0 is available: 24.0.0-alpha1 as well as for design: 23.2.0

its not working correctly, and my app crashing. toolbar error, style error, everything is not properly working. Please help me understand what the actual problem is?


Solution

  • its working fine now, bcz i m just downloaded android support repository rev.28 and change both appcombat and design library to latest version. now its

     compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:design:23.2.1'
    

    this is latest version till now

    what i learn is always use stable version of dependency. and this is what you can find it here