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). Can anybody explain?
Asked
Active
Viewed 1.1e+01k times
139

Jéwôm'
- 3,753
- 5
- 40
- 73
3 Answers
330
Since the version 22.1.0, the class ActionBarActivity
is deprecated. You should use AppCompatActivity
.

Gabriele Mariotti
- 320,139
- 94
- 887
- 841

Gaëtan
- 11,912
- 7
- 35
- 45
-
9they could have updated the activity templates. sigh... – victor n. Jun 28 '15 at 15:58
-
46Now 1,000,000 will waste 5 minutes fixing this because somebody at google did not update the template. That´s 5 million minutes lost, to be conservative. – Josh Jul 20 '15 at 09:25
-
The template was updated in Android Studio 1.3-dev – Gaëtan Jul 20 '15 at 09:43
-
Because google you know – Neon Warge Nov 21 '15 at 09:49
40
According to this video of Android Developers you should only make two changes

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