139

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?

Jéwôm'
  • 3,753
  • 5
  • 40
  • 73

3 Answers3

330

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

Read here and here for more information.

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841
Gaëtan
  • 11,912
  • 7
  • 35
  • 45
40

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

enter image description here

Jorge Casariego
  • 21,948
  • 6
  • 90
  • 97
  • Other changes may be necessary as outlined in that video. The two changes shown here are merely the most basic changes. It is also important to include the proper dependency for existing projects -- as outlined in that video. – dm78 Jun 18 '15 at 15:47
8

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)

Amol Desai
  • 872
  • 1
  • 9
  • 17