ActionBarActivity is deprecated

user4696584 picture user4696584 · Apr 27, 2015 · Viewed 111.7k times · Source

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?

Answer

Gaëtan picture Gaëtan · Apr 27, 2015

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

Read here and here for more information.