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 trialDalton Coble
6,489 PointsMy Gradel will not build please help
I have spent an hour fixing my git and now gradel won't run.
error:
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
jason phillips
18,131 Pointsyou need to replace
runProguard false
with
minifyEnabled false
Dalton Coble
6,489 PointsDalton Coble
6,489 PointsrunProguard false is not in my code anywhere
jason phillips
18,131 Pointsjason phillips
18,131 PointsSorry this needs to be replaced in the build.gradle file for the app.
Dalton Coble
6,489 PointsDalton Coble
6,489 PointsIt isn't in there. Neither line is.
jason phillips
18,131 Pointsjason phillips
18,131 PointsCan you post your build.gradle file?
Dalton Coble
6,489 PointsDalton Coble
6,489 Points// 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'
}
allprojects { repositories { mavenCentral() } }
jason phillips
18,131 Pointsjason phillips
18,131 PointsThat is the build.gradle file for the project. There is another one that will look like this:
Dalton Coble
6,489 PointsDalton Coble
6,489 PointsI found that one now what.
jason phillips
18,131 Pointsjason phillips
18,131 PointsCan you post that file?
Dalton Coble
6,489 PointsDalton Coble
6,489 Pointsapply 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.+' }
jason phillips
18,131 Pointsjason phillips
18,131 Pointsyou need to replace
runProguard false
with
minifyEnabled false
Dalton Coble
6,489 PointsDalton Coble
6,489 PointsThanks you helped out a lot. I got it running.
Slava Fleer
6,086 PointsSlava Fleer
6,086 PointsThanks. It helped for me too.
Could you, please, explain what it does? Maybe we would need it in the future too.
Thanks.