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

My Gradel will not build please help

I have spent an hour fixing my git and now gradel won't run.


Error:(15, 0) Gradle DSL method not found: 'runProguard()' Possible causes:<ul><li>The project 'MemeMaker' may be using a version of Gradle that does not contain the method. <a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin. <a href="apply.gradle.plugin">Apply Gradle plugin</a></li>

1 Answer

you need to replace

runProguard false


minifyEnabled false

runProguard false is not in my code anywhere

Sorry this needs to be replaced in the build.gradle file for the app.

It isn't in there. Neither line is.

Can you post your build.gradle file?

// Top-level build file where you can add configuration options common to all sub-projects/modules.

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

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


allprojects { repositories { mavenCentral() } }

That is the build.gradle file for the project. There is another one that will look like this:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "jasonphillipsdev.stormy"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.squareup.okhttp:mockwebserver:2.2.0'
    compile 'com.jakewharton:butterknife:6.1.0'
    compile 'com.android.support:recyclerview-v7:22.0.0'


I found that one now what.

Can you post that 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.+' }

you need to replace

runProguard false


minifyEnabled false

Thanks you helped out a lot. I got it running.

Slava Fleer
Slava Fleer
6,086 Points

Thanks. It helped for me too.

Could you, please, explain what it does? Maybe we would need it in the future too.