Use androidx Activities instead (ie FragmentActivity, or ).
Use androidx fragments instead: Fragment.