Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Android Lists and Adapters (2015) Lists with RecyclerViews Making Hour Parcelable

My gradle setup is broken and I have no idea how to fix it - it complains that the plugin is too old and I should update

I have this error:

Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "fa35b67976287d3da3af2aeff1d760df30957c4c" <a href="fixGradleElements">Fix plugin version and sync project</a><br><a href="openFile:/Users/vav/Documents/gw/Android/GymWare/app/build.gradle">Open File</a>

This is my gradle file: apply plugin: 'com.android.application'

android { compileSdkVersion 23 buildToolsVersion '23.2.0'

defaultConfig {
    applicationId "com.gymwear.vav.gymware"
    minSdkVersion 18
    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']) compile 'com.backendless:backendless:3.0.8.1' compile 'com.android.support:recyclerview-v7:23.2.0' compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:support-v4:23.2.0' }

I don't know what to do?

As of today the version is compile 'com.android.support:recyclerview-v7:23.2.1' did you update your sdk?

Sherry Lin
Sherry Lin
959 Points

Has anyone solved this? I am running to the same Gradle plugin issue as well- how do I update it?

3 Answers

You just change the version number and then hit rebuild button in android studio.

Sherry Lin
Sherry Lin
959 Points

Hi Hans,

I tried changing the version number from build:gradle:2.0.0-beta2 to build:gradle:2.0.0. --> clicked save --> clicked build > Rebuild Project --> clicked sync, and after saving and syncing it still keeps reverting to the beta version. Am I missing a step here that is preventing the change from sticking?

Current build: classpath 'com.android.tools.build:gradle:2.0.0-beta2' Desired build: classpath 'com.android.tools.build:gradle:2.0.0'

My build:gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0-beta2'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects { repositories { jcenter() } }

task clean(type: Delete) { delete rootProject.buildDir }

buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.0.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects { repositories { jcenter() } }

This is the latest Project Gradle. Normally you do not want to mess with this.(unless of course you are familiar with gradle) What you want is build.gradle (Module : app ) and in there you will find dependency. any API outside of normal Android SDK you want to put it in there.

For Example: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.android.support:recyclerview-v7:23.3.0' compile 'com.android.support:design:23.3.0'

}

Hope that helps. If not, please send me the link to your github to this project and I can look at it.