Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin is too old, please update to a more recent version [closed]

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "aed79d567e57792ed352e708d2b7ca891ff897c6" Can somebody help me? How could I update this one

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'

defaultConfig {
    applicationId "xxxxxx.xxxx.xxx"
    minSdkVersion 16
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}}   dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile files('libs/Parse-1.10.2.jar')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.google.android.gms:play-services:8.1.0'}'

and i'm using plugin 'com.android.tools.build:gradle:2.0.0-alpha3'

Do you have any idea which may be the cause?

like image 343
tin Avatar asked Jan 21 '16 03:01

tin


1 Answers

Update your plugin to:

classpath 'com.android.tools.build:gradle:2.0.0-alpha6'

You may get an error saying Gradle Version 2.10 is required.

Follow this SO answer, which says:

I gest you need change Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home path

Or you need set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like this

distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
like image 88
Kishan Vaghela Avatar answered Sep 22 '22 14:09

Kishan Vaghela