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.support.v7.app.actionbaractivity is deprecated

android.support.v7.app.ActionBarActivity is deprecated, what does this mean and how do i solve ths issue. I am new to coding.

Also public class MainActivity extends ActionBarActivity. the word "ActionBarActivity" has a line across the word , why is this ?

1 Answer

Hello,

Code being deprecated means that you cannot use that bit of code with newer versions of Android as it has been removed. Most of the time there will be something new to do instead. In this case, you should justs need to replace ActionBarActivity with AppCompatActivity.

Thnaks for the help it worked .

just want to say I wish treehouse was around back when i was at university. i didnt like coding but treehouse makes it easier for me. Keep up the work treehouse team ^_^