import android.support.v7.app.ActionBarActivity by With Latest version: import androidx.appcompat.app.AppCompatActivity; public class BaseActivity extends AppCompatActivity { } import androidx.appcompat.app.AppCompatActivity; public class BaseActivity extends AppCompatActivity { } Please Share