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


current version of Android Studio (3.1) no longer supports command "compile"

When I copied the code from the okhttp website to use in my gradle build file and then tried to run a gradle sync, I was given the error message "configuration 'compile' is obsolete." A quick comparison against the other pre-included dependent api's and it seems that now the system is using '"implementation" instead of "compile."

I suppose this isn't really a question, but it's a change I noticed that affected whether my project would build and run, and no one else has mentioned this.

1 Answer

Dmitry Bruhanov
Dmitry Bruhanov
8,513 Points

Hey, Grant! We all noticed)) But the Android Studio automatically changes "compile" to "implementation", so it's not a big deal, isn't it? Did you have trouble because of this change?

I'm pretty sure I have the latest version, it says I'm running version 3.1.1, but mine did not automatically change it. It gave me a build error, telling me that 'compile' is obsolete, and I had to do some searching to find out what the current version uses instead.