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 Build a Weather App (2015) Networking Making an HTTP GET Request with OkHttp

Brady Gordish
Brady Gordish
Courses Plus Student 5,354 Points

Depreciated code?

While it doesn't seem to be effecting the build, I am getting a warning I haven't seen before on line 11 where we declare the MainActivity class. ActionBarActivity has a line through it and states that 'Android.support.v7.app.ActionBarActivity' is depreciated.

What does it mean if something in your code is depreciated, and what would be the best approach to fixing such a warning?

2 Answers


I too am working on the Android Track and ran into the same issue. I didn't change mine throughout the whole session but did wonder about a solution. Here is what I found:


The short version is that you should use AppCompatActivity instead. I'm going to try that today and I will let you know my results.