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!

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 Data Persistence Introduction to Data Persistence Introduction to the Starter Kit

Tom Finet
Tom Finet
7,027 Points

Gradle Project Sync Fail Error 15, 0


The gradle build fails and I do not know how to fix it.

Here are the errors:

Gradle DSL method not found: 'runProguard()'

Possible causes:

The project 'mememaker' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file

The build file may be missing a Gradle plugin. Apply Gradle plugin

Here is my build.gradle file:

    apply plugin: 'android'

    android {

        compileSdkVersion 19
        buildToolsVersion '20.0.0'

        defaultConfig {
            applicationId 'com.teamtreehouse.mememaker'
            minSdkVersion 16
            targetSdkVersion 19
            versionCode 1
            versionName '1.0'
        buildTypes {

            release {
                runProguard false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        productFlavors {

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile files('libs/commons-io-2.4.jar')
        compile 'com.android.support:support-v13:19.0.+'

Thanks a bunch!

2 Answers

Harry James
Harry James
14,780 Points

Hey Sarah!

This is a quick fix! You're getting the error because runProguard is now deprecated and has been replaced with minifyEnabled. Therefore, in your build.gradle file, you should swap out runProguard for minifyEnabled, like this:

release {
                minifyEnabled false //Replaced old line: runProguard false
                // ... other code ...

After that, try a Gradle Sync again and see if the problem goes away.

That should be enough to get rid of the error! If you do run into any further issues though, go ahead and give me a shout!

If you wish to learn more about what minifyEnabled is and what it does, go ahead and check out my post over here.

Hope it helps!

Tom Finet
Tom Finet
7,027 Points

It did the trick, thanks so much.

Yay! Thanks Sarah for asking and Harry for reply!