Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

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"

http://stackoverflow.com/questions/27343745/after-android-studio-update-gradle-dsl-method-not-found-runproguard

Nicolas Hampton
Nicolas Hampton
44,626 Points

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.