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 ?
Regards
CC
This version worked for me:
import androidx.appcompat.app.AppCompatActivity;
public class BaseActivity extends AppCompatActivity {
}
Use
android.support.v7.app.AppCompatActivity
instead of
android.support.v7.app.ActionBarActivity
(DEPRECATED)
and extends AppCompatActivity
public myClass extends AppCompatActivity{
...
...
if you have the message:
cannot resolve symbol AppCompatActivity
You have to update to the last support library in your Android SDK Manager
The line across ActionBarActivity means that it has been deprecated. Its just another way of denoting it. You should now use AppCompatActivity instead starting with version 22.1.0.
You can read more here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With