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

Noah Schill
Noah Schill
10,020 Points

Gradle build errors

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>

I fail the initial Gradle sync. This is the log. What should I do? I'm running Android Studio 1.1.0.

Try cleaning the project and sync your project with Gradle again.

3 Answers

Wesley Seago
Wesley Seago
10,424 Points

In your build.gradle file, change line 16 as follows:

Replace : runProguard false

With: minifyEnabled false

Then re-sync, clean and build.

JIHOON JUNG
JIHOON JUNG
10,927 Points

Great, solved this error in s seconds. :D

In addition to Wesley's solution above, I also had to install SDK v 19, and build tools 20.0.0.

Pablo Rocha
Pablo Rocha
10,142 Points

Also, line 1 needs to be as follows:

``gradle apply plugin: 'com.android.application'