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


Ricky Sparks
Ricky Sparks
22,249 Points

Android Fun Fact Gradle error? can't find answer on stackoverflow?

Jeff Janes
Jeff Janes
8,033 Points

If you remove line 16...

runProguard true

...does it run then?

3 Answers

Andrew West
Andrew West
3,245 Points

It's been a few months since doing any Android development and I got this error after updating Android Studio. It looks like the runProguard() function was renamed to minifyEnabled() at some point.

On line 16 replace "runProguard true" with "minifyEnabled true"


I've noticed that sometimes if I'm following along and type something independently from the autofill, I won't have the necessary package dependencies added, since we rely on that in this course a lot. Try deleting the line, then finishing it partially, hovering over the unfinished text and hitting ctrl+enter to have the autofill add any packages the method needs automatically. Let me know if that works for you, I see almost no other difference in your code, except mine is set to false, most likely because I haven't got to that lesson in the course.