Home » Android » android – ActionBarActivity is deprecated

android – ActionBarActivity is deprecated

Posted by: admin March 11, 2020 Leave a comment


Actually there is no problem. Project compiles and runs. But I can’t understand what is mean strikeout class name (Android Studio tells that there is deprecated code is used)enter image description here. Can anybody explain?

How to&Answers:

Since the version 22.1.0, the class ActionBarActivity is deprecated. You should use AppCompatActivity.

Read here and here for more information.


According to this video of Android Developers you should only make two changes

enter image description here


android developers documentation says : “Updated the AppCompatActivity as the base class for activities that use the support library action bar features. This class replaces the deprecated ActionBarActivity.”

checkout changes for Android Support Library, revision 22.1.0 (April 2015)